SIZE(1) SysV SIZE(1)
NAME
size - print section sizes in bytes of common object files
SYNOPSIS
size [-n] [-f] [-o] [-x] [-V] files
DESCRIPTION
size produces section size information in bytes for each loaded section
in the common object files. The size of the text, data, and bss
(uninitialized data) sections is printed, as well as the sum of the sizes
of these sections. If an archive file is input to the size command the
information for all archive members is displayed.
OPTIONS
-n Includes NOLOAD sections in the size.
-f Produces full output, that is, it prints the size of every
loaded section, followed by the section name in parentheses.
-o Prints numbers in octal, rather than decimal.
-x Prints numbers in hexadecimal, rather than decimal.
-V Supplies version information.
CAVEAT
Since the size of bss sections is not known until link-edit time, the
size command will not give the true total size of pre-linked objects.
DIAGNOSTICS
size: name: cannot open
if name cannot be read.
size: name: bad magic
if name is not an appropriate common object file.
SEE ALSO
cc(1), ld(1), a.out(4), ar(4).