date and time created 88/12/12 20:54:43 by kfall
[unix-history] / usr / src / old / as.vax / as.1
CommitLineData
d8e69841
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
71d59617 5.\" @(#)as.1 6.3 (Berkeley) %G%
d8e69841 6.\"
a04b42ee 7.TH AS 1 ""
d8e69841
KM
8.UC 4
9.SH NAME
ff126578 10as \- VAX-11 assembler
d8e69841
KM
11.SH SYNOPSIS
12.B as
13[
43917865
KM
14.B \-a1-16
15] [
16[
d8e69841
KM
17.B \-d124
18] [
19.B \-L
20] [
21.B \-W
22] [
23.B \-V
24] [
25.B \-J
26] [
27.B \-R
28] [
29.B \-t
30directory
31] [
32.B \-o
33objfile ] [ name ... ]
34.SH DESCRIPTION
35.I As
36assembles the named files, or the standard input if no file name is specified.
37The available flags are:
38.TP
43917865
KM
39.B \-a
40Specifies the alignment of procedures and data blocks.
41It is given as a power of two; thus an alignment of 3
71d59617 42causes alignment on an eight byte boundary.
43917865
KM
43The default is
44.B \-a2.
45.TP
d8e69841
KM
46.B \-d
47Specifies the number of bytes to be assembled for offsets
48which involve forward or external references, and which have sizes unspecified
49in the assembly language.
50The default is
51.B \-d4.
52.TP
53.B \-L
54Save defined labels beginning with a `L', which are normally discarded
55to save space in the resultant symbol table.
56The compilers generate such temporary labels.
57.TP
58.B \-V
ff126578
KM
59Use virtual memory for some intermediate storage,
60rather than a temporary file.
d8e69841
KM
61.TP
62.B \-W
63Do not complain about errors.
64.TP
65.B \-J
66Use long branches to resolve jumps when byte-displacement branches are
67insufficient. This must be used when a compiler-generated assembly contains
68branches of more than 32k bytes.
69.TP
70.B \-R
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.
75.TP
76.B \-t
77Specifies a directory to receive the temporary file, other than
78the default /tmp.
79.PP
80All undefined symbols in the assembly
81are treated as global.
82.PP
83The output of the assembly is left on the file
84.I objfile;
85if that is omitted,
86.I a.out
87is used.
88.SH FILES
89.ta 1.5i
ff126578 90/tmp/as\(** default temporary files
d8e69841
KM
91.br
92a.out default resultant object file
93.SH "SEE ALSO"
94ld(1),
95nm(1),
96adb(1),
ff126578 97dbx(1),
d8e69841
KM
98a.out(5)
99.br
100Auxiliary documentation
101.I Assembler Reference Manual.
102.SH AUTHORS
103John F. Reiser
104.br
105Robert R. Henry
106.SH BUGS
107.B \-J
108should be eliminated; the assembler should automatically choose among
109byte, word and long branches.