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

46
II IA32 Linux Memory Layout Stack Runtime stack (8MB limit) Heap Dynamically allocated storage When call malloc(), calloc(), new() Data Statically allocated data E.g., arrays & strings declared in code Text Executable machine instructions Read-only Upper 2 hex digits = 8 bits of address FF 00 Stack Text Data Heap 08 8MB not drawn to scale

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