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

Lecture Notes: 02-06 Sbrk, VMem

·65 words·1 min·

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

Finish trying to get sbrk to replace malloc / realloc / free.

  • First, make it work with just sbrk (manually reallocate).
  • Then, conclude that free / real realloc is hard.

Look at how sbrk works with the syscall actually being brk. Look at the bottom of the manpage to see how to get current brk.

Overflow:

  • Start talking about data structures in C.
Nat Tuck
Author
Nat Tuck