Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(CP) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

a.out(FP)

ar(FP)

as(CP)

cc(CP)

ld(CP)


 size(CP)                       6 January 1993                       size(CP)


 Name

    size - print section sizes in bytes of COFF files

 Syntax

    size [-n] [-f] [-d] [-o] [-x] [-V] files

 Description

    The size command produces section size information in bytes for each
    loaded section in a COFF file.  The size of the .text, .data, and .bss
    (uninitialized data) sections is printed, as well as the sum of the sizes
    of these sections.  For an archive file, information for all archive
    members is displayed.

    The -n option includes NOLOAD sections in the size calculation.

    The -f option produces full output, that is, it prints the size of every
    loaded section, followed by the section name in parentheses.

    The -d option causes the sizes to be printed in decimal. This is the
    default behavior.

    The -o and -x options cause the sizes to be printed in octal or in hexa-
    decimal, respectively.

    The -V flag will supply the version information on the size command.

 Diagnostics


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

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

 Notes

    If you are using XENIX binaries, see size(XNX) for information on
    appropriate usage.

    Since the size of .bss sections is not known until link-edit time, the
    size command will not give the true total size of pre-linked objects.

    This utility determines whether an object file is in OMF or COFF format
    and executes the appropriate binaries in each case. Since this utility
    relies on the files in /lib/coff and /lib/xout, changing or moving any of
    those files results in an error.

 See also

    a.out(FP), ar(FP), as(CP), cc(CP), ld(CP)

 Standards conformance

    size is conformant with:
    AT&T SVID Issue 2.


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