Print section sizes of object and load modules (UNIX)
size [-v] file... size [-h heap] [-s stack] module...
The size utility displays size information for each section in the specified object or load modules.
The -s stack option will not work for 32-bit flat model objects or load modules. |
The output consists of five columns. With the exception of the hex column, all information is printed in decimal.
This column: | Indicates: |
---|---|
text | the total code size in bytes |
data | the total initialized data size |
bss | the total uninitialized data size (this includes the stack, the heap, and any other uninitialized data items) |
decimal | the sum of text, data, and bss |
hex | the sum of text, data, and bss (in hex) |
Entering this command:
size /bin/size /bin/wcc
would display a table similar to the following:
text data bss decimal hex 6816 620 6276 13712 3590 /bin/size 353276 31832 20796 405904 63190 /bin/wcc