AS(1) — User’s Manual — Commands
NAME
as − assembler
SYNOPSIS
as [ −d2 ] [ −j ] [ −L ] [ −R ] [ −o objfile ] file
DESCRIPTION
As translates assembly code in the named file into executable object code in the specified objfile.
All undefined symbols in the assembly are treated as global.
The output of the assembly is left in the file objfile. If that is omitted, and the source file name has the form xxx.s, then file xxx.o is used.
OPTIONS
−d2 Specifies that instruction offsets which involve forward or external references, and which have sizes unspecified in the assembly language are two bytes long. The default is four bytes. See also −j.
−L Save defined labels beginning with a ‘L’, which are normally discarded to save space in the resultant symbol table. The compilers generate such temporary labels.
−j Use short branches to resolve jumps to externals. This is for compact programs which cannot use the -d2 flag because of the large program relocation.
−R Make initialized data segments read-only, by concatenating them to the text segments. This eliminates the need to run editor scripts on assembly code to make initialized data read-only and shared.
FILES
/tmp/as∗default temporary file
SEE ALSO
ld(1), nm(1), adb(1), a.out(5)
Auxiliary documentation "Assembler Reference Manual for the Sun Workstation".
BUGS
Should always assemble to a.out unless told otherwise.
Should assemble standard input with no arguments.
Sun System Release 0.3 — 25 April 1983