Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ as(1) — SunOS 1.4U

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 ] [ −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, 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 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 1.4  —  Last change: 9 August 1984

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