Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(1) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

as(1)

cc(1)

ld(1)

a.out(4)

ar(4)



size(1)                        DG/UX R4.11MU05                       size(1)


NAME
       size - print section sizes of object files

SYNOPSIS
       size [-n] [-f] [-o] [-x] [-V] [-F] [-a] file ...

DESCRIPTION
       The size command produces section or segment size information in
       bytes (decimal) for each loaded section in the specified object
       files.  Size prints out the size of the text, data, and bss
       (uninitialized data) segments (or sections) and their total.  For an
       archive file, size displays this information for each member of the
       archive.

       When calculating segment information, size prints out the total file
       size of the non-writable segments, the total file size of the
       writable segments, and the total memory size of the writable segments
       minus the total file size of the writable segments.

       If it cannot calculate segment information, size calculates section
       information.  When calculating section information, it prints out the
       total size of sections that are allocatable, non-writable, and not
       NOBITS, the total size of the sections that are allocatable,
       writable, and not NOBITS, and the total size of the writable sections
       of type NOBITS.  (NOBITS sections do not actually take up space in
       the file.)

       If size cannot calculate either segment or section information, it
       prints an error message and stops processing the file.

       Options are:

       -n     Include sections not loaded when calculating the sizes.

       -f     Produce full output; print the size of every loaded section,
              followed by the section name in parentheses.

       -o     Print numbers in octal, not decimal.

       -x     Print numbers in hexadecimal, not decimal.

       -V     Print, on standard error, the version information about the
              size command being executed.

       -F     Print the size of each loadable segment, the permission flags
              of the segment, then the total of the loadable segment sizes
              (permission flags are not reported in a COFF environment).  If
              there is no segment data, size prints an error message and
              stops processing the file.

       -a     Print a variety of information about components of a common
              object (COFF) file, including sizes of the file header,
              optional header, section headers, debug symbols, compiler-
              generated symbols, local symbols, global symbols, string
              table, and padding.

EXAMPLES
       The examples below are typical size output.

       size file           2724 + 88 + 0 =  2812

       size -f file        26(.text) + 5(.init) + 5(.fini)  = 36

       size -F file        2724(r-x) + 88(rwx) + 0(rwx) = 2812

DIAGNOSTICS
       size:  name:  cannot open
            if name cannot be read.

       size:  name:  bad magic
            if name is not an appropriate object file.

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,
       size will not give the true total size of pre-linked objects.


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026