Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ as(CP) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          as - common assembler

     Syntax
          as [options] filename

     Description
          The as command assembles the named file.  The following
          flags may be specified in any order:

          -o objfile    Put the output of the assembly in objfile.  By
                        default, the output file name is formed by
                        removing the .s suffix, if there is one, from
                        the input file name and appending a .o suffix.

          -n            Turn off long/short address optimization.  By
                        default, address optimization takes place.

          -m            Run the m4 macro processor on the input to the
                        assembler.

          -R            Remove (unlink) the input file after assembly
                        is completed.

          -dl           Do not produce line number information in the
                        object file.

          -V            Write the version number of the assembler
                        being run on the standard error output.

          -Y [md],dir   Find the m4 preprocessor (m) and/or the file
                        of predefined macros (d) in directory dir
                        instead of in the customary place.

     Files
          TMPDIR/*    temporary files

                      TMPDIR is usually /usr/tmp but can be redefined
                      by setting the environment variable TMPDIR [see
                      tempnam() in tmpnam(S)].

     See Also
          cc(CP), ld(CP), m4(CP), nm(CP), strip(CP), tmpnam(S),
          a.out(F).

     Warning
          If the -m (m4 macro processor invocation) option is used,
          keywords for m4 (see m4(CP)) cannot be used as symbols
          (variables, functions, labels) in the input file since m4
          cannot determine which are assembler symbols and which are
          real m4 macros.

     Notes
          The .align assembler directive may not work in the .text
          section when optimization is performed.

          Arithmetic expressions may only have one forward referenced
          symbol per expression.
          Wherever possible, the assembler should be accessed through
          a compilation system interface program (such as cc(CP)).

     Standards Conformance
          as 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