Script started on Mon Nov 19 17:13:31 2001 Script on hercules[1]% cc memory_segments.cpp Script on hercules[2]% a.out ---------- main ------------------- Address etext is: 10001360 ( 268440416) Address edata is: 10015000 ( 268521472) Address end is: 100155a4 ( 268522916) Address of code for proc1: 100010b0 ( 268439728) Address of code for proc2: 100011e0 ( 268440032) Address of global variable g0: 100145d0 ( 268518864) Address of global variable g1: 1001451c ( 268518684) Address of global variable g2: 100145d8 ( 268518872) Address of global variable g3: 10014520 ( 268518688) Address of global variable g4: 10015578 ( 268522872) Address heap1 in heap space: 100155b8 ( 268522936) Address heap2 in heap space: 100155c8 ( 268522936) Address of local variable lc0: 7fff2eec (2147430124) Address of local variable lc1: 7fff2ee0 (2147430112) Address of local variable lc2: 7fff2ef0 (2147430128) Address of local uninitialized static variable ls0: 100145b8 ( 268518840) Address of local initialized static variable ls1: 100145c0 ( 268518848) ----------- proc1 ------------------ Address of code for proc1: 100010b0 ( 268439728) Address of global variable g0: 100145d0 ( 268518864) Address of global variable g1: 1001451c ( 268518684) Address of global variable g2: 100145d8 ( 268518872) Address of global variable g3: 10014520 ( 268518688) Address of global variable g4: 10015578 ( 268522872) Address of local variable lc3: 7fff2ec4 (2147430084) Address of local variable lc4: 7fff2ec0 (2147430080) ------------ proc2 ----------------- Address of code for proc2: 100011e0 ( 268440032) Address of global variable g0: 100145d0 ( 268518864) Address of global variable g1: 1001451c ( 268518684) Address of global variable g2: 100145d8 ( 268518872) Address of global variable g3: 10014520 ( 268518688) Address of global variable g4: 10015578 ( 268522872) Address of local variable lc5: 7fff2ec4 (2147430084) Address of local variable lc6: 7fff2ec0 (2147430080) Address of local uninitialized static variable ls2: 100145bc ( 268518844) Address of local initialized static variable ls3: 100145c4 ( 268518852) Script on hercules[3]% exit Script on hercules[4]% exit script done on Mon Nov 19 17:13:50 2001