size Command Purpose Displays the section sizes of the Extended Common Object File Format (XCOFF) object files. Syntax size [ -d | -o | -x ] [ -f ] [ -V ] File [ File ... ] Description The size command writes to standard output the number of bytes required by all sections, along with their sum for each XCOFF file. If the -f flag is specified, the section name follows the section size. Flags The output is in decimal notation unless you change the output with the following flags: -d Writes in decimal notation. -f Writes the section name in parenthesis following the section size. -o Writes in octal notation. -x Writes in hexadecimal notation. -V Prints the version number of the strip command. Examples 1. To display the size of the a.out file in decimal, enter: size This displays the size in bytes of the executable a.out file. The size of each section of the object file is given, followed by the total: 3720 + 1752 + 4152 = 9624 2. To display the size of an object file in octal, enter: size -o driver.o This displays the size of the driver.o object file in octal. 3. To display the size of several object files in hexadecimal, enter: size -x *.o This displays in hexadecimal the size of each file ending with .o in the current directory. Implementation Specifics This command is part of Application Development Toolkit in Base Application Development Toolkit. Related Information The ar command, as command, dump command, ld command, nm command, strip command.