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