manual page distributed with 4.2BSD
[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.\"
ff126578 5.\" @(#)as.1 5.1 (Berkeley) %G%
d8e69841 6.\"
ff126578 7.TH AS 1 "July 1, 1983"
d8e69841
KM
8.UC 4
9.SH NAME
ff126578 10as \- VAX-11 assembler
d8e69841
KM
11.SH SYNOPSIS
12.B as
13[
14.B \-d124
15] [
16.B \-L
17] [
18.B \-W
19] [
20.B \-V
21] [
22.B \-J
23] [
24.B \-R
25] [
26.B \-t
27directory
28] [
29.B \-o
30objfile ] [ name ... ]
31.SH DESCRIPTION
32.I As
33assembles the named files, or the standard input if no file name is specified.
34The available flags are:
35.TP
36.B \-d
37Specifies the number of bytes to be assembled for offsets
38which involve forward or external references, and which have sizes unspecified
39in the assembly language.
40The default is
41.B \-d4.
42.TP
43.B \-L
44Save defined labels beginning with a `L', which are normally discarded
45to save space in the resultant symbol table.
46The compilers generate such temporary labels.
47.TP
48.B \-V
ff126578
KM
49Use virtual memory for some intermediate storage,
50rather than a temporary file.
d8e69841
KM
51.TP
52.B \-W
53Do not complain about errors.
54.TP
55.B \-J
56Use long branches to resolve jumps when byte-displacement branches are
57insufficient. This must be used when a compiler-generated assembly contains
58branches of more than 32k bytes.
59.TP
60.B \-R
61Make initialized data segments read-only, by concatenating them to
62the text segments.
63This obviates the need to run editor scripts on assembly
64code to make initialized data read-only and shared.
65.TP
66.B \-t
67Specifies a directory to receive the temporary file, other than
68the default /tmp.
69.PP
70All undefined symbols in the assembly
71are treated as global.
72.PP
73The output of the assembly is left on the file
74.I objfile;
75if that is omitted,
76.I a.out
77is used.
78.SH FILES
79.ta 1.5i
ff126578 80/tmp/as\(** default temporary files
d8e69841
KM
81.br
82a.out default resultant object file
83.SH "SEE ALSO"
84ld(1),
85nm(1),
86adb(1),
ff126578 87dbx(1),
d8e69841
KM
88a.out(5)
89.br
90Auxiliary documentation
91.I Assembler Reference Manual.
92.SH AUTHORS
93John F. Reiser
94.br
95Robert R. Henry
96.SH BUGS
97.B \-J
98should be eliminated; the assembler should automatically choose among
99byte, word and long branches.