Research V7 development
[unix-history] / usr / man / man1 / as.1
CommitLineData
8791aa5e
DR
1.TH AS 1 PDP11
2.SH NAME
3as \- assembler
4.SH SYNOPSIS
5.B as
6[
7.B \-
8] [
9.B \-o
10objfile
11] file ...
12.SH DESCRIPTION
13.I As
14assembles the concatenation of the named files.
15If the optional first argument
16.B \-
17is used,
18all undefined symbols in the assembly
19are treated as global.
20.PP
21The output of the assembly is left on the file
22.I objfile;
23if that is omitted,
24.B a.out
25is used.
26It is executable if no errors occurred
27during the assembly,
28and if there were no unresolved external references.
29.SH FILES
30/lib/as2 pass 2 of the assembler
31.br
32/tmp/atm[1-3]? temporary
33.br
34a.out object
35.SH "SEE ALSO"
36ld(1),
37nm(1),
38adb(1),
39a.out(5)
40.br
41.I "UNIX Assembler Manual"
42by D. M. Ritchie
43.SH DIAGNOSTICS
44When
45an input file cannot be read, its name
46followed by a question mark is typed and assembly
47ceases.
48When syntactic or semantic errors occur, a single-character diagnostic is typed out
49together with the line number and the file name in which it
50occurred.
51Errors in pass 1 cause cancellation of pass 2.
52The possible errors are:
53.PP
54.ta 3
55) Parentheses error
56.br
57] Parentheses error
58.br
59< String not terminated properly
60.br
61* Indirection used illegally
62.br
63.li
64\fB.\fR Illegal assignment to `\fB.\fR'
65.br
66a Error in address
67.br
68b Branch instruction is odd or too remote
69.br
70e Error in expression
71.br
72f Error in local (`f' or `b') type symbol
73.br
74g Garbage (unknown) character
75.br
76i End of file inside an if
77.br
78m Multiply defined symbol as label
79.br
80o Word quantity assembled at odd address
81.br
82p `\fB.\fR' different in pass 1 and 2
83.br
84r Relocation error
85.br
86u Undefined symbol
87.br
88x Syntax error
89.br
90.SH BUGS
91Syntax errors can cause incorrect line numbers
92in following diagnostics.