Reference Guide
124 Chapter 6
Assembling Your Program
Using the as Command
Using the as Command
The as command is the standard command for invoking the Assembler
on PA-RISC systems running on HP-UX. See as(1) in HP-UX Reference
for complete details.
If no files are specified, the Assembler reads source text from standard
input, which must be a command-line pipe or a FIFO. It cannot be a
device file, such as a terminal.
The Assembler produces a single output file (see the -o option). If the
source text is read from standard input, the object file is written to
standard output and the -o option is ignored.
The as command resides in the /usr/ccs/bin directory.
If your programming environment does not establish a path to this
directory, you must include the path name as the first part of the as
command. For example:
/usr/ccs/bin/as -l line.s box.s draw.s
Syntax
as [ [ option] ...[ file] ...] ...
Parameters
file The name of an input file. The name must include the
suffix .s. If you specify multiple input files, they are
concatenated in order.
option A flag telling the Assembler to take some special
action. All options affect all input files. The as
command supports the following options.
+DAarch. Assemble code for the architecture