1 .\" Copyright (c) 1991, 1992 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .\" $FreeBSD: src/gnu/usr.bin/as/as.1aout,v 1.9 1999/08/27 23:34:11 peter Exp $
4 .\" $DragonFly: src/gnu/usr.bin/as/Attic/as.1aout,v 1.2 2003/06/17 04:25:44 dillon Exp $
5 .TH as 1 "21 January 1992" "cygnus support" "GNU Development Tools"
8 as \- the portable GNU assembler.
13 .RB "[\|" \-a "\||\|" \-al "\||\|" -as\c
29 .RB "[\|" \-\^\- "\ |\ " \c
35 .RB "[\|" \-ACA "\||\|" \-ACA_A "\||\|" \-ACB\c
36 .RB "\||\|" \-ACC "\||\|" \-AKA "\||\|" \-AKB\c
37 .RB "\||\|" \-AKC "\||\|" \-AMC "\|]"
39 .RB "[\|" \-norelax "\|]"
41 .I m680x0-only options:
44 .RB "[\|" \-mc68000 "\||\|" \-mc68010 "\||\|" \-mc68020 "\|]"
50 \& is really a family of assemblers.
51 If you use (or have used) the GNU assembler on one architecture, you
52 should find a fairly similar environment when you use it on another
53 architecture. Each version has much in common with the others,
54 including object file formats, most assembler directives (often called
57 \& and assembler syntax.
59 For information on the syntax and pseudo-ops used by GNU \c
68 Using as: The GNU Assembler\c
73 \& is primarily intended to assemble the output of the GNU C
76 \& for use by the linker \c
79 we've tried to make \c
81 \& assemble correctly everything that the native
85 \& always uses the same syntax as another
86 assembler for the same architecture; for example, we know of several
87 incompatible versions of 680x0 assembly language syntax.
91 \& it assembles exactly one source
92 program. The source program is made up of one or more files.
93 (The standard input is also a file.)
97 \& is given no file names it attempts to read one input file
100 \& standard input, which is normally your terminal. You
105 \& there is no more program
106 to assemble. Use `\|\c
108 \|' if you need to explicitly name the standard input file
109 in your command line.
112 \& may write warnings and error messages to the standard error
113 file (usually your terminal). This should not happen when \c
116 run automatically by a compiler. Warnings report an assumption made so
119 \& could keep assembling a flawed program; errors report a
120 grave problem that stops the assembly.
124 .BR \-a \||\| \-al \||\| \-as
125 Turn on assembly listings; `\|\c
127 \&\|', listing only, `\|\c
135 This option is accepted only for script compatibility with calls to
136 other assemblers; it has no effect on \c
141 ``fast''--skip preprocessing (assume source is compiler output).
146 to the search list for
151 Handle position independent code, generated by gcc -fpic.
154 Handle position independent code, generated by gcc -fPIC.
155 This is normally the same as -k.
158 Keep (in symbol table) local symbols, starting with `\|\c
163 Name the object-file output from \c
167 Fold data section into text section
175 Suppress warning messages
177 .IR "\-\^\-" "\ |\ " "files\|.\|.\|."
178 Source files to assemble, or standard input (\c
183 (When configured for Intel 960.)
184 Specify which variant of the 960 architecture is the target.
188 (When configured for Intel 960.)
189 Add code to collect statistics about branches taken.
193 (When configured for Intel 960.)
194 Do not alter compare-and-branch instructions for long displacements;
199 (When configured for Motorola 68000).
201 Shorten references to undefined symbols, to one word instead of two.
203 .BR "\-mc68000" "\||\|" "\-mc68010" "\||\|" "\-mc68020"
205 (When configured for Motorola 68000).
207 Specify what processor in the 68000 family is the target (default 68020)
210 Options may be in any order, and may be
211 before, after, or between file names. The order of file names is
216 \|' (two hyphens) by itself names the standard input file
217 explicitly, as one of the files for \c
223 \|' any command line argument that begins with a
226 \|') is an option. Each option changes the behavior of
229 \&. No option changes the way another option works. An
232 \|' followed by one or more letters; the case of
233 the letter is important. All options are optional.
237 \|' option expects exactly one file name to follow. The file
238 name may either immediately follow the option's letter (compatible
239 with older assemblers) or it may be the next command argument (GNU
242 These two command lines are equivalent:
245 as\ \ \-o\ \ my\-object\-file.o\ \ mumble.s
248 as\ \ \-omy\-object\-file.o\ \ mumble.s
257 Using as: The GNU Assembler\c
269 Copyright (c) 1991, 1992 Free Software Foundation, Inc.
271 Permission is granted to make and distribute verbatim copies of
272 this manual provided the copyright notice and this permission notice
273 are preserved on all copies.
275 Permission is granted to copy and distribute modified versions of this
276 manual under the conditions for verbatim copying, provided that the
277 entire resulting derived work is distributed under the terms of a
278 permission notice identical to this one.
280 Permission is granted to copy and distribute translations of this
281 manual into another language, under the above conditions for modified
282 versions, except that this permission notice may be included in
283 translations approved by the Free Software Foundation instead of in
284 the original English.