size(1) General Commands Manual size(1)
Name
size - prints the section size of an object file
Syntax
size [-o -d -x -A -B -V] [ file1 ... filen ]
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.
Options
The -o, -x, and -d options print the size in octal, hexadecimal, and decimal, respectively.
The -A and -B options specify AT&T System V style output or Berkeley (4.3BSD) style output, respectively. The version of UNIX running at
your site determines the default. System V style, which is more verbose than Berkeley, dumps the headers of each section. The Berkeley
version prints size information for each section, regardless of whether the file exists, and prints the total in hexadecimal and decimal.
The -V option prints the version of size that you are using.
RISC size(1)