manual page distributed with 4.1BSD
[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.\"
5.\" @(#)as.1 4.1 (Berkeley) %G%
6.\"
7.TH AS 1 "4/1/81"
8.UC 4
9.SH NAME
10as \- assembler
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
49Use virtual memory for intermediate storage, rather than a temporary file.
50.TP
51.B \-W
52Do not complain about errors.
53.TP
54.B \-J
55Use long branches to resolve jumps when byte-displacement branches are
56insufficient. This must be used when a compiler-generated assembly contains
57branches of more than 32k bytes.
58.TP
59.B \-R
60Make initialized data segments read-only, by concatenating them to
61the text segments.
62This obviates the need to run editor scripts on assembly
63code to make initialized data read-only and shared.
64.TP
65.B \-t
66Specifies a directory to receive the temporary file, other than
67the default /tmp.
68.PP
69All undefined symbols in the assembly
70are treated as global.
71.PP
72The output of the assembly is left on the file
73.I objfile;
74if that is omitted,
75.I a.out
76is used.
77.SH FILES
78.ta 1.5i
79/tmp/as\(** default temporary file
80.br
81a.out default resultant object file
82.SH "SEE ALSO"
83ld(1),
84nm(1),
85adb(1),
86sdb(1),
87a.out(5)
88.br
89Auxiliary documentation
90.I Assembler Reference Manual.
91.SH AUTHORS
92John F. Reiser
93.br
94Robert R. Henry
95.SH BUGS
96.B \-J
97should be eliminated; the assembler should automatically choose among
98byte, word and long branches.