Skip to main content
  1. /classes/
  2. Classes, Spring 2025/
  3. CS 4310 Spring 2025: Course Site/

Lecture Notes: 08 Virtual Memory

·64 words·1 min·

ref: https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/

Sample Program
#

  • Find the top 10 words with the most A’s from /usr/share/dict/words
  • Keep an array of the top 10 so far, replace as needed.
  • Do it with malloc, show sys_brk, then move to sbrk and start worrying about free.

Malloc and Brk
#

  • malloc
  • sbrk

The brk syscall:

  • Returns current brk on 0 argument.
  • Lets you set a higher brk.
Nat Tuck
Author
Nat Tuck