Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ as(1) — SunOS 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ld(1)

nm(1)

adb(1)

dbx(1)

a.out(5)

AS(1)  —  USER COMMANDS

NAME

as − mc68000 assembler

SYNOPSIS

as [ −d2 ] [ −j ] [ −J ] [ −h ] [ −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 the −o flag is omitted, file a.out is used. 

OPTIONS

−d2 Specifies that instruction offsets involving forward or external references, and having sizes unspecified in the assembly language are two bytes long.  The default is four bytes. See also the −j option

−J Suppress span-dependent instruction calculations and force all branches and calls to take the most general form.  This is used when assembly time must be minimized, but program size and run time are not important. 

−h Suppress span-dependent instruction calculations and force all branches to be of medium length, but all calls to take the most general form.  This is used when assembly time must be minimized, but program size and run time are not important.  This option results in a smaller and faster program than that produced by the −J option, but some very large programs may not be able to use it because of the limits of the medium-length branches. 

−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 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)) qualifies 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 512 characters.

Sun Release 2.0  —  Last change: 7 November 1984

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026