Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(CP) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          size - print section sizes in bytes of common object files

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

     Description
          The size command produces section size information in bytes
          for each loaded section in the common object files.  The
          size of the text, data, and bss (uninitialized data)
          sections is printed, as well as the sum of the sizes of
          these sections.  If an archive file is input to the size
          command, the information for all archive members is
          displayed.

          The -n option includes NOLOAD sections in the size.

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

          Numbers will be printed in decimal unless either the -o or
          the -x option is used, in which case they will be printed in
          octal or in hexadecimal, respectively.

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

     See Also
          as(CP), cc(CP), ld(CP), a.out(F), ar(F)

     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, please refer to the manual
          entry for this utility in the XENIX Development Guide for
          information on the appropriate usage with XENIX binaries.

          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.

     Standards Conformance
          size is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.

                                                (printed 6/18/89)



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