1 .\" Copyright (c) 1991, 1992 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH as 1 "21 January 1992" "cygnus support" "GNU Development Tools"
6 GNU as\-\-the portable GNU assembler.
11 .RB "[\|" \-a "\||\|" \-al "\||\|" -as\c
26 .RB "[\|" \-\^\- "\ |\ " \c
32 .RB "[\|" \-ACA "\||\|" \-ACA_A "\||\|" \-ACB\c
33 .RB "\||\|" \-ACC "\||\|" \-AKA "\||\|" \-AKB\c
34 .RB "\||\|" \-AKC "\||\|" \-AMC "\|]"
36 .RB "[\|" \-norelax "\|]"
38 .I m680x0-only options:
41 .RB "[\|" \-mc68000 "\||\|" \-mc68010 "\||\|" \-mc68020 "\|]"
47 \& is really a family of assemblers.
48 If you use (or have used) the GNU assembler on one architecture, you
49 should find a fairly similar environment when you use it on another
50 architecture. Each version has much in common with the others,
51 including object file formats, most assembler directives (often called
54 \& and assembler syntax.
56 For information on the syntax and pseudo-ops used by GNU \c
65 Using as: The GNU Assembler\c
70 \& is primarily intended to assemble the output of the GNU C
73 \& for use by the linker \c
76 we've tried to make \c
78 \& assemble correctly everything that the native
82 \& always uses the same syntax as another
83 assembler for the same architecture; for example, we know of several
84 incompatible versions of 680x0 assembly language syntax.
88 \& it assembles exactly one source
89 program. The source program is made up of one or more files.
90 (The standard input is also a file.)
94 \& is given no file names it attempts to read one input file
97 \& standard input, which is normally your terminal. You
102 \& there is no more program
103 to assemble. Use `\|\c
105 \|' if you need to explicitly name the standard input file
106 in your command line.
109 \& may write warnings and error messages to the standard error
110 file (usually your terminal). This should not happen when \c
113 run automatically by a compiler. Warnings report an assumption made so
116 \& could keep assembling a flawed program; errors report a
117 grave problem that stops the assembly.
121 .BR \-a \||\| \-al \||\| \-as
122 Turn on assembly listings; `\|\c
124 \&\|', listing only, `\|\c
132 This option is accepted only for script compatibility with calls to
133 other assemblers; it has no effect on \c
138 ``fast''--skip preprocessing (assume source is compiler output).
143 to the search list for
148 Issue warnings when difference tables altered for long displacements.
151 Keep (in symbol table) local symbols, starting with `\|\c
156 Name the object-file output from \c
160 Fold data section into text section
168 Suppress warning messages
170 .IR "\-\^\-" "\ |\ " "files\|.\|.\|."
171 Source files to assemble, or standard input (\c
176 (When configured for Intel 960.)
177 Specify which variant of the 960 architecture is the target.
181 (When configured for Intel 960.)
182 Add code to collect statistics about branches taken.
186 (When configured for Intel 960.)
187 Do not alter compare-and-branch instructions for long displacements;
192 (When configured for Motorola 68000).
194 Shorten references to undefined symbols, to one word instead of two.
196 .BR "\-mc68000" "\||\|" "\-mc68010" "\||\|" "\-mc68020"
198 (When configured for Motorola 68000).
200 Specify what processor in the 68000 family is the target (default 68020)
203 Options may be in any order, and may be
204 before, after, or between file names. The order of file names is
209 \|' (two hyphens) by itself names the standard input file
210 explicitly, as one of the files for \c
216 \|' any command line argument that begins with a
219 \|') is an option. Each option changes the behavior of
222 \&. No option changes the way another option works. An
225 \|' followed by one or more letters; the case of
226 the letter is important. All options are optional.
230 \|' option expects exactly one file name to follow. The file
231 name may either immediately follow the option's letter (compatible
232 with older assemblers) or it may be the next command argument (GNU
235 These two command lines are equivalent:
238 as\ \ \-o\ \ my\-object\-file.o\ \ mumble.s
241 as\ \ \-omy\-object\-file.o\ \ mumble.s
250 Using as: The GNU Assembler\c
256 Copyright (c) 1991, 1992 Free Software Foundation, Inc.
258 Permission is granted to make and distribute verbatim copies of
259 this manual provided the copyright notice and this permission notice
260 are preserved on all copies.
262 Permission is granted to copy and distribute modified versions of this
263 manual under the conditions for verbatim copying, provided that the
264 entire resulting derived work is distributed under the terms of a
265 permission notice identical to this one.
267 Permission is granted to copy and distribute translations of this
268 manual into another language, under the above conditions for modified
269 versions, except that this permission notice may be included in
270 translations approved by the Free Software Foundation instead of in
271 the original English.