Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar

as

cc

dump

ld

nm

strip



SIZE(1,C)                   AIX Commands Reference                    SIZE(1,C)



-------------------------------------------------------------------------------
size



PURPOSE

Displays the section sizes of common object files.

SYNTAX


        +--------+   +------+   +-- a.out ---+
size ---| one of |---|      |---|            |---|
        | +----+ |   +- -f -+   +--- file ---+
        +-| -o |-+                ^        |
          | -x |                  +--------+
          | -V |
          | -d |
          +----+


DESCRIPTION

The size command writes to the standard output the number of bytes required by
the text, initialized data, and uninitialized data, along with their sum for
each file.  The default file is a.out.  The size command must be run on a
machine of the same machine type as the object file being examined.

FLAGS

The output is in decimal notation unless you change the output with the
following flags:

-d Writes decimal notation (default).

-f Writes the section name in parenthesis following its size.

-o Writes in octal notation.

-V Prints version number.

-x Writes in hexadecimal notation.

EXAMPLES

  1. To display the size of a.out in decimal:

      size

    This displays the size in bytes of the executable file a.out.  The size of
    each section of the object file is given, followed by the total.  The three



Processed November 8, 1990         SIZE(1,C)                                  1





SIZE(1,C)                   AIX Commands Reference                    SIZE(1,C)



    sections are program text, data, and bss (uninitialized data).  The values
    are in decimal.

  2. To display the size of an object file in octal:

      size  -o  driver.o

    This displays the size of the object file "driver.o" in octal.

  3. To display the size of several object files in hex:

      size  -x -f  *.o

    This displays in hexadecimal the sizes and section names of each file in
    the current directory ending with ".o".

RELATED INFORMATION

See the following commands:  "ar,"  "as,"  "cc,"  "dump," "ld,"  "nm," and
"strip."

See the discussion of the a.out and ar files in AIX Operating System Technical
Reference.
































Processed November 8, 1990         SIZE(1,C)                                  2



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