01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AS ( l ) ( AT&T UNIX PC Only ) AS ( l )<br />

NAME as - assembler<br />

SYNOPSIS<br />

a.s [-o objfile] [- n] [-j] [- m] [-R] [- r] [- bwi]<br />

[-V] [- T] sourcefile<br />

DESCRIPTION<br />

The as command translates mc68010 or mc68020 assembly<br />

language in sourcefile into object code. The result is a common<br />

object file, suitable for input to the link editor. The following flags<br />

may be specified in any order:<br />

-o obJfile<br />

Put the output of the assembly in objfile. By default,<br />

the output file name is formed by removing the .s suffix,<br />

if there is one, from the input file name and appending<br />

a .o suffix.<br />

-n Turn off long/short address optimization. By default,<br />

address optimization takes place.<br />

-j Invoke the long-jump assembler. The address optimization<br />

algorithm chooses between long and short address<br />

lengths, with short lengths chosen when possible.<br />

Often, three distinct lengths are allowed by the machine<br />

architecture; a choice must be made between two of<br />

those lengths. When the two choices given to the<br />

assembler exclude the largest length allowed, then some<br />

addresses might be unrepresentable. The long-jump<br />

assembler will always have the largest length as one of<br />

its allowable choices. If the assembler is invoked<br />

without this option, and the case arises where an<br />

address is unrepresentable by either of the two allowed<br />

choices, then the user will be informed of the error, and<br />

advised to try again using the -j option.<br />

- m Run the m..f. macro pre-processor on the input to the<br />

assembler.<br />

-R Remove (unlink) the input file after assembly is completed.<br />

- r Place all assembled data (normally placed in the data.<br />

section) into the text section. This option effectively<br />

disables the .data. pseudo operation. This option is off<br />

by default.<br />

- [bw I] Create byte (b), halfword ( w) or long (I) displacements<br />

for undefined symbols. (An undefined symbol is a reference<br />

to a symbol whose definition is external to the<br />

input file or a forward reference.) The default value for<br />

this option is long (I) displacements.<br />

-V Write the version number of the assembler being run on<br />

the standard error output.<br />

-T Truncate symbols to eight characters.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!