[Previous] [Contents] [Next]

size

Print section sizes of object and load modules (UNIX)

Syntax:

size [-v] file...

size [-h heap] [-s stack] module...

Options:

-h heap
Modify initial heap size to heap.
-s stack
Modify stack size to stack.
-v
Verbose display; includes stack and heap information.

Description:

The size utility displays size information for each section in the specified object or load modules.


Note: 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)

Examples:

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

Exit status:

0
Successful completion.
>0
An error occurred.

[Previous] [Contents] [Next]