size(1)
NAME
size − print section sizes of object files
SYNOPSIS
size [-d] [-o] [-x] [-V] files
DESCRIPTION
size produces section size information for each section in the object files. The size of the text, data and bss (uninitialized data) sections are printed along with the total size of the object file. If an archive file is input to the size command, the information for all archive members is displayed.
Options
size recognizes the following options:
-d Print sizes in decimal. This is the default.
-o Print sizes in octal.
-x Print sizes in hexadecimal.
-V Supply size- command version information.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
DIAGNOSTICS
size: name: cannot open name cannot be read.
size: name: bad magic name is not an appropriate object file.
EXAMPLES
Compare the sizes of the text, data, and bss sections for two versions of a program:
size ./version1 ./version2
DEPENDENCIES
Series 300/400
The -V option is not supported.
Series 700/800
An additional -v option causes size to print a verbose list of the subspaces in the object files. Each subspace is listed on a separate line with its size, physical address, and virtual address.
SEE ALSO
as(1), cc(1), ld(1). a.out(4), ar(4).
STANDARDS CONFORMANCE
size: SVID2, XPG2
Hewlett-Packard Company — HP-UX Release 9.0: August 1992