size
PURPOSE
Displays the section sizes of common object files.
SYNOPSIS
size [ -ox ] [ file ] ...
DESCRIPTION
The size command writes to the standard output the number
of bytes required by the text, initialized data, and
uninitialized data, along with their sum for each file.
The default file is a.out.
FLAGS
The output is in decimal notation unless you change the
output with the following flags:
-o Writes in octal notation.
-x Writes in hexadecimal notation.
EXAMPLES
1. To display the size of a.out in decimal:
size
This displays the size in bytes of the executable
file a.out. The size of each section of the object
file is given, followed by the total. The three
sections are program text, data, and bss (uninitial-
ized data). The values are in decimal.
2. To display the size of an object file in octal:
size -o driver.o
This displays the size of the object file "driver.o"
in octal.
3. To display the size of several object files in hex:
size -x *.o
This displays in hexadecimal the size of each file in
the current directory ending with ".o".
RELATED INFORMATION
The following commands: "ar," "as," "cc," "dump,"
"ld," "nm," and "strip."
The discussion of the a.out and ar files in AIX Operating
System Technical Reference.