size(1) — Commands
NAME
size − Prints the size of an object file and the sizes of its segments or sections
SYNOPSIS
size [-d -o -x -A -B -V] [ file1 ... fileN ]
FLAGS
The size command accepts the following flags:
−d, −o, −x
Prints size information in decimal (default), octal, and hexadecimal format, respectively.
−ASpecifies System V-style output, which dumps size and address information for each section of the object file. By default, numbers are printed in decimal.
−BSpecifies Berkeley (4.3BSD)-style output, which is the default for DIGITAL UNIX systems. This output contains size information for each segment and the size of the entire object file. By default, the segment size information is printed in decimal format and the object file size is printed in hexadecimal and decimal formats.
−VPrints the version of size that you are using.
DESCRIPTION
The size command prints information about the text, rdata, data, sdata, bss, and sbss sections of each file. The file can be an object or an archive. If you do not specify a file, size uses a.out as the default.
RELATED INFORMATION
Programmer’s Guide