SIZE(1) (Software Generation System Utilities) SIZE(1)
NAME
size - print section sizes in bytes of common object files
SYNOPSIS
size [-n] [-f] [-o] [-x] [-V] files
DESCRIPTION
The size command 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.
The -n option includes NOLOAD sections in the size.
The -f option produces full output, that is, it prints the
size of every loaded section, followed by the section name
in parentheses.
Numbers will be printed in decimal unless either the -o or
the -x option is used, in which case they will be printed in
octal or in hexadecimal, respectively.
The -V flag will supply the version information on the size
command.
SEE ALSO
as(1), cc(1), ld(1), a.out(4), ar(4).
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.
Page 1 May 1989
SIZE(1) (Software Generation System Utilities) SIZE(1)
size: name: bad magic
if name is not an appropriate common object file.
Page 2 May 1989