4.4BSD/usr/src/old/as.vax/as.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)as.1	6.6 (Berkeley) 8/9/91
.\"
.Dd August 9, 1991
.Dt AS 1
.Os BSD 4
.Sh NAME
.Nm as
.Nd VAX-11 assembler
.Sh SYNOPSIS
.Nm as
.Op Fl \&a Ar val
.Op Fl \&d Ar bytes
.Op Fl \&L
.Op Fl \&W
.Op Fl \&V
.Op Fl \&J
.Op Fl \&R
.Op Fl \&t Ar directory
.Op Fl \&o Ar outfile
.Op Ar source_file ...
.Sh DESCRIPTION
The
.Nm as
assembler produces an object file from the given source files
or from the standard input.
.Bl -tag -width flag
.It Fl a
Specifies the alignment
.Ar value
of procedures and data blocks.
It is given as a power of two; thus an alignment of 3
causes alignment on an eight byte boundary.
The default is
.Fl a Ns Li 2 , 
the minumum value is
.Li 1 ,
the maximum value
.Li 16 .
.It Fl d
Displacement offset in bytes for displacement values
not defined in the first pass or unspecified in the assembly language.
Possible values are
.Li 1 , 2 ,
or
.Li 4 .
The default is
.Fl d Ns Li 4 , 
if
.Fl d
is not given.
.It Fl L
Save defined labels beginning with a
\*(LqL\*(Rq, which are normally discarded
to save space in the resultant symbol table.
The compilers generate such temporary labels.
.It Fl V
Use virtual memory for some intermediate storage,
rather than a temporary file.
.It Fl W
Do not complain about errors.
.It Fl J
Use long branches to resolve jumps when byte-displacement branches are
insufficient.  This must be used when a compiler-generated assembly contains
branches of more than 32k bytes.
.It Fl R
Make initialized data segments read-only, by concatenating them to
the text segments.
This obviates the need to run editor scripts on assembly
code to make initialized data read-only and shared.
.It Fl t
Specifies a directory to receive the temporary file, other than
the default /tmp.
.El
.Pp
Symbols remaining undefined upon completion are assumed global
.Pp
Output is either placed in
.Ar outfile,
if given, or sent
placed in
.Pa a.out .
.Sh FILES
.Bl -tag -width /tmp/as* -compact
.It Pa tmp/as\(**
Default temporary files.
.It Pa a.out
Default resultant object file.
.El
.Sh SEE ALSO
.Xr a.out 5 ,
.Xr adb 1 ,
.Xr dbx 1 ,
.Xr ld 1 ,
.Xr nm 1
.Rs
.%T "Assembler Reference Manual" .
.Re
.Sh AUTHORS
John F. Reiser
Robert R. Henry
.Sh HISTORY
An
.Nm as
command appeared in
.At v6 .
The version described here is derived from the
.At v7
.Nm as .
.Sh BUGS
The flag
.Fl J
should be eliminated; the assembler should automatically choose among
byte, word and long branches.