All pastes #2105525 Raw Edit

Mine

public text v1 · immutable
#2105525 ·published 2012-01-23 22:50 UTC
rendered paste body
Here's the output of the program:

iwhitloc@lore:~/lab1-src$ ./lab1
Address of the function donothing() is 0x10a54
Address of integer a is 0x20e30
Address of array b is 0x20e6c
Address of array d is 0x4cd8c
Address of character c is 0xffbff75f
Address of integer pointer ptr is 0xffbff758
Address of the integer pointed to by ptr is 0x78cc0

Address of integer local is 0xffbff6e4

and from pmap:

iwhitloc@lore:~/lab1-src$ pmap -x 10552
10552:  ./lab1
 Address  Kbytes     RSS    Anon  Locked Mode   Mapped File
00010000       8       8       -       - r-x--  lab1
00020000       8       8       8       - rwx--  lab1
00022000     344       -       -       - rwx--  lab1
00078000      16      16      16       - rwx--    [ heap ]
FF200000    1224    1224       -       - r-x--  libc.so.1
FF342000      40      40      40       - rwx--  libc.so.1
FF34C000       8       8       8       - rwx--  libc.so.1
FF350000       8       8       -       - r-x--  libc_psr.so.1
FF360000      24      16      16       - rwx--    [ anon ]
FF370000       8       8       -       - r--s-  dev:32,19 ino:12815
FF380000       8       8       8       - rwx--    [ anon ]
FF390000       8       8       8       - rw---    [ anon ]
FF3A0000       8       8       8       - rw---    [ anon ]
FF3B0000     232     232       -       - r-x--  ld.so.1
FF3F0000       8       8       8       - rwx--    [ anon ]
FF3FA000      16      16      16       - rwx--  ld.so.1
FFBFC000      16      16      16       - rw---    [ stack ]
-------- ------- ------- ------- -------
total Kb    1984    1632     152       -