Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1980, 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
d8e69841 | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
d8e69841 | 5 | .\" |
3f4f3ab0 | 6 | .\" @(#)as.1 6.6 (Berkeley) %G% |
b5dc1377 CL |
7 | .\" |
8 | .Dd | |
9 | .Dt AS 1 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm as | |
13 | .Nd VAX-11 assembler | |
14 | .Sh SYNOPSIS | |
15 | .Nm as | |
16 | .Op Fl \&a Ar val | |
17 | .Op Fl \&d Ar bytes | |
18 | .Op Fl \&L | |
19 | .Op Fl \&W | |
20 | .Op Fl \&V | |
21 | .Op Fl \&J | |
22 | .Op Fl \&R | |
23 | .Op Fl \&t Ar directory | |
24 | .Op Fl \&o Ar outfile | |
5325ced3 | 25 | .Op Ar source_file ... |
b5dc1377 CL |
26 | .Sh DESCRIPTION |
27 | The | |
28 | .Nm as | |
29 | assembler produces an object file from the given source files | |
30 | or from the standard input. | |
3f4f3ab0 CL |
31 | .Bl -tag -width flag |
32 | .It Fl a | |
b5dc1377 CL |
33 | Specifies the alignment |
34 | .Ar value | |
35 | of procedures and data blocks. | |
43917865 | 36 | It is given as a power of two; thus an alignment of 3 |
71d59617 | 37 | causes alignment on an eight byte boundary. |
43917865 | 38 | The default is |
3f4f3ab0 | 39 | .Fl a Ns Li 2 , |
b5dc1377 CL |
40 | the minumum value is |
41 | .Li 1 , | |
42 | the maximum value | |
43 | .Li 16 . | |
3f4f3ab0 | 44 | .It Fl d |
b5dc1377 CL |
45 | Displacement offset in bytes for displacement values |
46 | not defined in the first pass or unspecified in the assembly language. | |
47 | Possible values are | |
48 | .Li 1 , 2 , | |
49 | or | |
50 | .Li 4 . | |
51 | The default is | |
3f4f3ab0 | 52 | .Fl d Ns Li 4 , |
b5dc1377 CL |
53 | if |
54 | .Fl d | |
55 | is not given. | |
3f4f3ab0 | 56 | .It Fl L |
b5dc1377 CL |
57 | Save defined labels beginning with a |
58 | \*(LqL\*(Rq, which are normally discarded | |
d8e69841 KM |
59 | to save space in the resultant symbol table. |
60 | The compilers generate such temporary labels. | |
3f4f3ab0 | 61 | .It Fl V |
ff126578 KM |
62 | Use virtual memory for some intermediate storage, |
63 | rather than a temporary file. | |
3f4f3ab0 | 64 | .It Fl W |
d8e69841 | 65 | Do not complain about errors. |
3f4f3ab0 | 66 | .It Fl J |
d8e69841 KM |
67 | Use long branches to resolve jumps when byte-displacement branches are |
68 | insufficient. This must be used when a compiler-generated assembly contains | |
69 | branches of more than 32k bytes. | |
3f4f3ab0 | 70 | .It Fl R |
d8e69841 KM |
71 | Make initialized data segments read-only, by concatenating them to |
72 | the text segments. | |
73 | This obviates the need to run editor scripts on assembly | |
74 | code to make initialized data read-only and shared. | |
3f4f3ab0 | 75 | .It Fl t |
d8e69841 KM |
76 | Specifies a directory to receive the temporary file, other than |
77 | the default /tmp. | |
3f4f3ab0 | 78 | .El |
b5dc1377 CL |
79 | .Pp |
80 | Symbols remaining undefined upon completion are assumed global | |
81 | .Pp | |
82 | Output is either placed in | |
83 | .Ar outfile, | |
84 | if given, or sent | |
85 | placed in | |
86 | .Pa a.out . | |
87 | .Sh FILES | |
3f4f3ab0 CL |
88 | .Bl -tag -width /tmp/as* -compact |
89 | .It Pa tmp/as\(** | |
90 | Default temporary files. | |
91 | .It Pa a.out | |
92 | Default resultant object file. | |
93 | .El | |
b5dc1377 CL |
94 | .Sh SEE ALSO |
95 | .Xr a.out 5 , | |
96 | .Xr adb 1 , | |
97 | .Xr dbx 1 , | |
98 | .Xr ld 1 , | |
99 | .Xr nm 1 | |
3f4f3ab0 CL |
100 | .Rs |
101 | .%T "Assembler Reference Manual" . | |
102 | .Re | |
b5dc1377 | 103 | .Sh AUTHORS |
d8e69841 | 104 | John F. Reiser |
d8e69841 | 105 | Robert R. Henry |
b5dc1377 | 106 | .Sh HISTORY |
3f4f3ab0 CL |
107 | An |
108 | .Nm as | |
109 | command appeared in | |
110 | .At v6 . | |
111 | The version described here is derived from the | |
112 | .At v7 | |
5325ced3 | 113 | .Nm as . |
b5dc1377 | 114 | .Sh BUGS |
3f4f3ab0 | 115 | The flag |
b5dc1377 | 116 | .Fl J |
d8e69841 KM |
117 | should be eliminated; the assembler should automatically choose among |
118 | byte, word and long branches. |