AS(1) INTERACTIVE UNIX System AS(1)
NAME
as - common assembler
SYNOPSIS
as [options] file name
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(3S)].
SEE ALSO
cc(1), ld(1), m4(1), nm(1), strip(1), tmpnam(3S), a.out(4).
NOTES
Wherever possible, the assembler should be accessed through
a compilation system interface program [such as cc(1)].
WARNING
If the -m (m4 macro processor invocation) option is used,
keywords for m4 [see m4(1)] cannot be used as symbols (vari-
ables, functions, labels) in the input file since m4 cannot
determine which are assembler symbols and which are real m4
Rev. C Software Development Set Page 1
AS(1) INTERACTIVE UNIX System AS(1)
macros.
BUGS
The .align assembler directive may not work in the .text
section when optimization is performed.
CAVEATS
Arithmetic expressions may only have one forward referenced
symbol per expression.
Rev. C Software Development Set Page 2