Is there any Linux command to show code, BSS, Stack etc of a compiled C-pro开发者_StackOverflow中文版gram
size(1)
can show you the sizes of all the segments of an executable.
Sample output:
$ size /bin/ls
text data bss dec hex filename
97892 972 3136 102000 18e70 /bin/ls
精彩评论