SIZE(1) General Commands Manual SIZE(1)
size - display the size of an object file
size [ object-file ... ]
/usr/bin/size [-n] [-f] [-o] [-x] [-V] filename ...
size prints the (decimal) number of bytes required by the text, data,
and bss portions, and their sum in hex and decimal, of each object-file
argument. If no file is specified, a.out is used.
The Sun386i version of the System V compatibility package includes
/usr/bin/size, which allows the System V options to be used, and cre-
ates the same output as the System V size(1) command; it produces sec-
tion size information in bytes for each loaded section in COFF 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 ar-
chive file is given, it displays the information for all archive mem-
-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 Print numbers in octal, instead of the default which is decimal.
-x Print numbers in hexadecimal.
-V Supply version information.
size: name: cannot open
name cannot be read.
size: name: bad magic
name is not an appropriate common object file.
Since the size of bss sections is not known until link-edit time, this
command does not give the true total size of pre-linked objects.
cc(1V), size(1), a.out(5), ar(5), coff(5)
18 February 1988 SIZE(1)