AS(1) — USER COMMANDS
NAME
as − Solbourne assemblers
SYNOPSIS
as [ −L ] [ −R ] [ −o objfile ] [ −O[n]] [ −P [[ −Ipath ] [ −Dname ] [ −Dname=def ] [ −Uname ]]...]
[ −S[C]] filename ...
DESCRIPTION
as translates the assembly source file, filename into an executable object file, objfile. The assembler recognizes the filename argument ‘−’ as the standard input.
All undefined symbols in the assembly are treated as global.
The output of the assembly is left in the file objfile.
OPTIONS
The following options are valid.
−L Save defined labels beginning with an L, which are normally discarded to save space in the resultant symbol table. The compilers generate many such temporary labels.
−R Make the initialized data segment read-only by concatenating it to the text segment. This eliminates the need to run editor scripts on assembly code to make initialized data read-only and shared.
−o objfile
The next argument is taken as the name of the object file to be produced. If the −o flag is not used, the object file is named a.out.
−O[n]
Enable peephole optimization corresponding to optimization level n (1 if n not specified) of the Solbourne high-level language compilers. This option can be used safely only when assembling code produced by a Solbourne compiler.
−P Run cpp(1), the C preprocessor, on the files being assembled. The preprocessor is run separately on each input file, not on their concatenation. The preprocessor output is passed to the assembler.
−Ipath
−Dname
−Dname=def
−Uname
When −P is in effect, these cpp(1) options are passed to the C preprocessor, without interpretation by as. Otherwise, they are ignored.
−S[C]
Produce a disassembly of the emitted code to the standard output. This is most useful in combination with the −O option, to review optimized code. Adding the character C to the option prevents comment lines from appearing in the output.
FILES
/tmp/as∗ default temporary file
SEE ALSO
adb(1), cpp(1), dbx(1), ld(1), a.out(5) coff(5)
Assembly Reference Manual
BUGS
The Pascal compiler 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 (the assembler does not have this restriction).
Solbourne Computer, Inc. — 4 Feb 1991