move whereis back into the main tree
[unix-history] / usr / src / old / as.vax / as.1
CommitLineData
b5dc1377
CL
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
d8e69841 3.\"
b5dc1377 4.\" %sccs.include.redist.man%
d8e69841 5.\"
3f4f3ab0 6.\" @(#)as.1 6.6 (Berkeley) %G%
b5dc1377
CL
7.\"
8.Dd
9.Dt AS 1
10.Os BSD 4
11.Sh NAME
12.Nm as
13.Nd VAX-11 assembler
14.Sh SYNOPSIS
15.Nm as
16.Op Fl \&a Ar val
17.Op Fl \&d Ar bytes
18.Op Fl \&L
19.Op Fl \&W
20.Op Fl \&V
21.Op Fl \&J
22.Op Fl \&R
23.Op Fl \&t Ar directory
24.Op Fl \&o Ar outfile
5325ced3 25.Op Ar source_file ...
b5dc1377
CL
26.Sh DESCRIPTION
27The
28.Nm as
29assembler produces an object file from the given source files
30or from the standard input.
3f4f3ab0
CL
31.Bl -tag -width flag
32.It Fl a
b5dc1377
CL
33Specifies the alignment
34.Ar value
35of procedures and data blocks.
43917865 36It is given as a power of two; thus an alignment of 3
71d59617 37causes alignment on an eight byte boundary.
43917865 38The default is
3f4f3ab0 39.Fl a Ns Li 2 ,
b5dc1377
CL
40the minumum value is
41.Li 1 ,
42the maximum value
43.Li 16 .
3f4f3ab0 44.It Fl d
b5dc1377
CL
45Displacement offset in bytes for displacement values
46not defined in the first pass or unspecified in the assembly language.
47Possible values are
48.Li 1 , 2 ,
49or
50.Li 4 .
51The default is
3f4f3ab0 52.Fl d Ns Li 4 ,
b5dc1377
CL
53if
54.Fl d
55is not given.
3f4f3ab0 56.It Fl L
b5dc1377
CL
57Save defined labels beginning with a
58\*(LqL\*(Rq, which are normally discarded
d8e69841
KM
59to save space in the resultant symbol table.
60The compilers generate such temporary labels.
3f4f3ab0 61.It Fl V
ff126578
KM
62Use virtual memory for some intermediate storage,
63rather than a temporary file.
3f4f3ab0 64.It Fl W
d8e69841 65Do not complain about errors.
3f4f3ab0 66.It Fl J
d8e69841
KM
67Use long branches to resolve jumps when byte-displacement branches are
68insufficient. This must be used when a compiler-generated assembly contains
69branches of more than 32k bytes.
3f4f3ab0 70.It Fl R
d8e69841
KM
71Make initialized data segments read-only, by concatenating them to
72the text segments.
73This obviates the need to run editor scripts on assembly
74code to make initialized data read-only and shared.
3f4f3ab0 75.It Fl t
d8e69841
KM
76Specifies a directory to receive the temporary file, other than
77the default /tmp.
3f4f3ab0 78.El
b5dc1377
CL
79.Pp
80Symbols remaining undefined upon completion are assumed global
81.Pp
82Output is either placed in
83.Ar outfile,
84if given, or sent
85placed in
86.Pa a.out .
87.Sh FILES
3f4f3ab0
CL
88.Bl -tag -width /tmp/as* -compact
89.It Pa tmp/as\(**
90Default temporary files.
91.It Pa a.out
92Default resultant object file.
93.El
b5dc1377
CL
94.Sh SEE ALSO
95.Xr a.out 5 ,
96.Xr adb 1 ,
97.Xr dbx 1 ,
98.Xr ld 1 ,
99.Xr nm 1
3f4f3ab0
CL
100.Rs
101.%T "Assembler Reference Manual" .
102.Re
b5dc1377 103.Sh AUTHORS
d8e69841 104John F. Reiser
d8e69841 105Robert R. Henry
b5dc1377 106.Sh HISTORY
3f4f3ab0
CL
107An
108.Nm as
109command appeared in
110.At v6 .
111The version described here is derived from the
112.At v7
5325ced3 113.Nm as .
b5dc1377 114.Sh BUGS
3f4f3ab0 115The flag
b5dc1377 116.Fl J
d8e69841
KM
117should be eliminated; the assembler should automatically choose among
118byte, word and long branches.