SIZE(1-Svr4) RISC/os Reference Manual SIZE(1-Svr4)
NAME
size - prints the section size of an object file
SYNOPSIS
size [-o -d -f -n -x -A -B -F -V] [ file1 ... fileN ]
DESCRIPTION
The size command prints information about the text, rdata,
data, sdata, bss and sbss sections of each file. The file
can be an object or an archive. If you don't specify a
file, size uses a.out as the default.
The -F option prints out the size of each loadable segment,
the permission flags of the segment, and the total of the
loadable segment sizes. If there is no segment data, size
prints an error message and stops processing the file.
The -f option prints out the size of each allocatable sec-
tion, the name of the section, and the total of the section
sizes. If there is no section data, size prints out an
error message and stops processing the file.
The -n option prints out non-loadable segment or non-
allocatable section sizes. If segment data exists, size
prints out the memory size of each loadable segment or file
size of each non-loadable segment, the permission flags, and
the total size of the segments. If there is no segment
data, size prints out, for each allocatable and non-
allocatable section, the memory size, the section name, and
the total size of the sections. If there is no segment or
section data, size prints an error message and stops pro-
cessing.
The -o, -x, and -d options print the size in octal, hexade-
cimal, and decimal, respectively.
The -A and -B options specify AT&T System V style output or
Berkeley (4.3BSD) style output, respectively. The version of
UNIX running at your site determines the default. System V
style, which is more verbose than Berkeley, dumps the
headers of each section. The Berkeley version prints size
information for each section, regardless of whether the file
exists, and prints the total in hexadecimal and decimal.
The -V option prints the version of size that you're using.
SEE ALSO
RISCompiler and C Programmer's Guide.
Printed 11/19/92 Page 1