as(1) — Architecture-Dependent Command
NAME
as − assembler
SYNOPSIS
as [-A] [-a afile] [-o objfile] [file]
REMARKS
This is a generic entry for a machine-dependent assembler. A specific entry is provided for each assembler. Refer to manual entry as_300(1) for information about the Series 300/400 assembler or as_800(1) for information about the Series 700/800 assembler.
DESCRIPTION
as assembles the named file, or the standard input if no file name is specified. The optional arguments -A or -a can be used to obtain an assembly listing with offsets and instruction codes. If -A is used the listing goes to standard output. If -a is used the listing goes to afile.
All undefined symbols in the assembly are treated as global.
The output of the assembly is left on the file objfile; if that is omitted, .s is stripped from the end of the file name (if there) and .o is appended to it. This becomes the name of the output file. as does not invoke ld.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
FILES
/usr/tmp/* temporary files
file.o object file
SEE ALSO
adb(1), as_300(1), as_800(1), ld(1), nm(1), nm_300(1), nm_800(1), crt0(3), a.out(4), a.out_300(4), a.out_800(4).
DIAGNOSTICS
If the name chosen for the output file is of the form *?.[cs], the assembler issues an appropriate complaint and quits. When syntactic or semantic errors occur, a single-line diagnostic is displayed on standard error together with the line number and the name of the file where it occurred.
STANDARDS CONFORMANCE
as: SVID2, XPG2
Hewlett-Packard Company — HP-UX Release 9.0: August 1992