III:1 IA32 Linux Memory Layout Stack Runtime stack (8MB limit) Heap Dynamically allocated storage ...

Post on 29-Dec-2015

265 views 0 download

Tags:

Transcript of III:1 IA32 Linux Memory Layout Stack Runtime stack (8MB limit) Heap Dynamically allocated storage ...

Introduction to Computer Systems 15-213/18-243, spring 2009

IA32 Linux Memory LayoutStackRuntime stack (8MB limit)HeapDynamically allocated storageWhen call malloc(), calloc(), new()DataStatically allocated dataE.g., arrays & strings declared in codeTextExecutable machine instructionsRead-onlyUpper 2 hex digits = 8 bits of addressFF00StackTextDataHeap088MBnot drawn to scaleIII:#Memory Allocation Examplechar big_array[1