size - print section sizes of object files
size [-d] [-o] [-x] [-V] [-v] [-f] [-F] [-n] [-U] files
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.
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 Print version information about the size command.
-v 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.
-f Print the size of each allocatable section (ELF only).
-F Print the size and permission bits of each loadable
segment (ELF only).
-n Print the sizes of non loadable segments or non
allocatable sections (ELF only).
-U Print the usage menu.
The following internationalization variables affect the execution of
LANG Determines the locale category for native language, local customs
and coded character set in the absence of LC_ALL and other LC_*
environment variables. If LANG is not specified or is set to the
empty string, a default of C (see lang(5)) is used instead of
Determines the values for all locale categories and has
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000
precedence over LANG and other LC_* environment variables.
Determines the locale that should be used to affect the format
and contents of diagnostic messages written to standard error.
Determines the locale category for numeric formatting.
Determines the locale category for character handling functions.
Determines the location of message catalogues for the processing
If any internationalization variable contains an invalid setting, size
behaves as if all internationalization variables are set to C. See
International Code Set Support
Single- and multi-byte character code sets are supported.
size: name: cannot open name cannot be read.
size: name: bad magic name is not an appropriate object
Compare the sizes of the text, data, and bss sections for two versions
of a program:
size ./version1 ./version2
as(1) translate assembly code to machine code
cc(1) invoke the HP-UX C compiler
ld(1) invoke the link editor
a.out(4) assembler, compiler, and linker output
ar(4) archive format
size: SVID2, SVID3, XPG2, XPG4
Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000
Hewlett-Packard Company - 3 - HP-UX Release 11i: November 2000