AS(1) — USER COMMANDS
NAME
as − mc68000 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 a.out 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 an ‘L’, which are normally discarded to save space in the resultant symbol table. The compilers generate such temporary labels.
−j Use short (pc relative) branches to resolve jump’s and jsr’s 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), dbx(1), a.out(5)
The “Assembler Reference Manual for the Sun Workstation” in the Sun Programming Tools Manual.
BUGS
Should assemble standard input with no arguments.
The Pascal compiler (pc(1)) qualifiles a nested procedure name by chaining the names of the enclosing procedures. This sometimes results in names long enough to abort the assembler, which currently limits identifiers to 50 characters.
Sun Release 1.1 — Last change: 13 March 1984