Download - III:1 IA32 Linux Memory Layout Stack Runtime stack (8MB limit) Heap Dynamically allocated storage When call malloc(), calloc(), new() Data Statically.

Transcript

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