Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ as(1) — SunOS 3.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 − Sun-1, Sun-2 and Sun-3 assembler

SYNOPSIS

as [ −d2 ] [ −e ] [ −h ] [ −j ] [ −J ] [ −L ] [ −m68010 | −10 ] [ −m68020 | −20 ] [ −o objfile ] [ −O ]

[ −R ] filename

DESCRIPTION

as translates assembly code in the named filename 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. 

OPTIONS

−d2Specifies 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. 

−eAllows control sections to begin on any two-byte boundary, rather than only four-byte boundaries. 

−hSuppress 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. 

−jUse 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. 

−JSuppress 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. 

−LSave defined labels beginning with an ‘L’, which are normally discarded to save space in the resultant symbol table.  The compilers generate such temporary labels. 

−m68010

−10Accept only MC68010 instructions and addressing modes, and put the MC68010 machine-type tag in the object file. 

−m68020

−20Accept the full MC68020 and MC68881 instruction sets and addressing modes, and put the MC68020 machine-type tag in the object file. 

−oThe next argument is taken as the name of the object file to be produced.  If the −o flag isn’t used, the objfile is named a.out. 

−OPerform span-dependent instruction resolution over entire files rather than just over individual procedures. 

−RMake 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

Doesn’t assemble standard input with no arguments. 

The Pascal compiler, pc, 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 3.0β  —  Last change: 21 December 1985

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