Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ as(1S) — SunOS 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ld(1)

nm(1)

adb(1S)

dbx(1)

a.out(5)

AS(1S)  —  UNKNOWN SECTION OF THE MANUAL

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 a ‘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(1S), 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. 

Sun System Release 1.0  —  1 November 1983

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