1 .\" Copyright (c) 1991, 1992, 1996, 1997 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH as 1 "29 March 1996" "cygnus support" "GNU Development Tools"
6 GNU as \- the portable GNU assembler.
11 .RB "[\|" \-a "[\|" dhlns "\|]" \c
16 .RB "[\|" \-\-defsym\ SYM=VAL "\|]"
18 .RB "[\|" \-\-gstabs "\|]"
24 .RB "[\|" \-M\ |\ \-\-mri "\|]"
31 .RB "[\|" \-\^\- "\ |\ " \c
37 .RB "[\|" \-ACA "\||\|" \-ACA_A "\||\|" \-ACB\c
38 .RB "\||\|" \-ACC "\||\|" \-AKA "\||\|" \-AKB\c
39 .RB "\||\|" \-AKC "\||\|" \-AMC "\|]"
41 .RB "[\|" \-no-relax "\|]"
43 .I m680x0-only options:
46 .RB "[\|" \-mc68000 "\||\|" \-mc68010 "\||\|" \-mc68020 "\|]"
52 \& is really a family of assemblers.
53 If you use (or have used) the GNU assembler on one architecture, you
54 should find a fairly similar environment when you use it on another
55 architecture. Each version has much in common with the others,
56 including object file formats, most assembler directives (often called
59 \& and assembler syntax.
61 For information on the syntax and pseudo-ops used by GNU \c
70 Using as: The GNU Assembler\c
75 \& is primarily intended to assemble the output of the GNU C
78 \& for use by the linker \c
81 we've tried to make \c
83 \& assemble correctly everything that the native
87 \& always uses the same syntax as another
88 assembler for the same architecture; for example, we know of several
89 incompatible versions of 680x0 assembly language syntax.
93 \& it assembles exactly one source
94 program. The source program is made up of one or more files.
95 (The standard input is also a file.)
99 \& is given no file names it attempts to read one input file
102 \& standard input, which is normally your terminal. You
107 \& there is no more program
108 to assemble. Use `\|\c
110 \|' if you need to explicitly name the standard input file
111 in your command line.
114 \& may write warnings and error messages to the standard error
115 file (usually your terminal). This should not happen when \c
118 run automatically by a compiler. Warnings report an assumption made so
121 \& could keep assembling a flawed program; errors report a
122 grave problem that stops the assembly.
127 Turn on assembly listings. There are various suboptions.
129 omits debugging directives.
131 includes the high level source code; this is only available if the
132 source file can be found, and the code was compiled with
135 includes an assembly listing.
137 omits forms processing.
139 includes a symbol listing.
142 sets the listing file name; this must be the last suboption.
143 The default suboptions are
147 This option is accepted only for script compatibility with calls to
148 other assemblers; it has no effect on \c
152 .B \-\-defsym SYM=VALUE
153 Define the symbol SYM to be VALUE before assembling the input file.
154 VALUE must be an integer constant. As in C, a leading 0x indicates a
155 hexadecimal value, and a leading 0 indicates an octal value.
158 ``fast''--skip preprocessing (assume source is compiler output).
163 to the search list for
168 Generate stabs debugging information for each assembler line. This
169 may help debugging assembler code, if the debugger can handle it.
172 Issue warnings when difference tables altered for long displacements.
175 Keep (in symbol table) local symbols, starting with `\|\c
180 Assemble in MRI compatibility mode.
183 Name the object-file output from \c
187 Fold data section into text section
195 Suppress warning messages
197 .IR "\-\^\-" "\ |\ " "files\|.\|.\|."
198 Source files to assemble, or standard input (\c
203 (When configured for Intel 960.)
204 Specify which variant of the 960 architecture is the target.
208 (When configured for Intel 960.)
209 Add code to collect statistics about branches taken.
213 (When configured for Intel 960.)
214 Do not alter compare-and-branch instructions for long displacements;
219 (When configured for Motorola 68000).
221 Shorten references to undefined symbols, to one word instead of two.
223 .BR "\-mc68000" "\||\|" "\-mc68010" "\||\|" "\-mc68020"
225 (When configured for Motorola 68000).
227 Specify what processor in the 68000 family is the target (default 68020)
230 Options may be in any order, and may be
231 before, after, or between file names. The order of file names is
236 \|' (two hyphens) by itself names the standard input file
237 explicitly, as one of the files for \c
243 \|' any command line argument that begins with a
246 \|') is an option. Each option changes the behavior of
249 \&. No option changes the way another option works. An
252 \|' followed by one or more letters; the case of
253 the letter is important. All options are optional.
257 \|' option expects exactly one file name to follow. The file
258 name may either immediately follow the option's letter (compatible
259 with older assemblers) or it may be the next command argument (GNU
262 These two command lines are equivalent:
265 as\ \ \-o\ \ my\-object\-file.o\ \ mumble.s
268 as\ \ \-omy\-object\-file.o\ \ mumble.s
277 Using as: The GNU Assembler\c
283 Copyright (c) 1991, 1992 Free Software Foundation, Inc.
285 Permission is granted to make and distribute verbatim copies of
286 this manual provided the copyright notice and this permission notice
287 are preserved on all copies.
289 Permission is granted to copy and distribute modified versions of this
290 manual under the conditions for verbatim copying, provided that the
291 entire resulting derived work is distributed under the terms of a
292 permission notice identical to this one.
294 Permission is granted to copy and distribute translations of this
295 manual into another language, under the above conditions for modified
296 versions, except that this permission notice may be included in
297 translations approved by the Free Software Foundation instead of in
298 the original English.