xref: /386bsd/usr/src/usr.bin/gas/as.1 (revision a2142627)
Copyright (c) 1991, 1992 Free Software Foundation
See section COPYING for conditions for redistribution
as 1 "21 January 1992" "cygnus support" "GNU Development Tools"
NAME
GNU as--the portable GNU assembler.
SYNOPSIS
as "[\|" -a "\||\|" -al "\||\|" -as\c \|] "[\|" -D "\|]" "[\|" -f "\|]" "[\|" -I path\c \|] "[\|" -K "\|]" "[\|" -L "\|]" "[\|" -o objfile\c \|] "[\|" -R "\|]" "[\|" -v "\|]" "[\|" -w "\|]" "[\|" -\^- " | " \c files\c \|.\|.\|.\|] i960-only options:

"[\|" -ACA "\||\|" -ACA_A "\||\|" -ACB\c "\||\|" -ACC "\||\|" -AKA "\||\|" -AKB\c "\||\|" -AKC "\||\|" -AMC "\|]" "[\|" -b "\|]" "[\|" -norelax "\|]" m680x0-only options:

"[\|" -l "\|]" "[\|" -mc68000 "\||\|" -mc68010 "\||\|" -mc68020 "\|]"

DESCRIPTION
GNU \c as\c is really a family of assemblers. If you use (or have used) the GNU assembler on one architecture, you should find a fairly similar environment when you use it on another architecture. Each version has much in common with the others, including object file formats, most assembler directives (often called \c pseudo-ops)\c and assembler syntax. For information on the syntax and pseudo-ops used by GNU \c as\c , see `\|\c as\c \|' entry in \c info \c (or the manual \c Using as: The GNU Assembler\c ). \c as\c is primarily intended to assemble the output of the GNU C compiler \c gcc\c for use by the linker \c ld\c . Nevertheless, we've tried to make \c as\c assemble correctly everything that the native assembler would. This doesn't mean \c as\c always uses the same syntax as another assembler for the same architecture; for example, we know of several incompatible versions of 680x0 assembly language syntax. Each time you run \c as\c it assembles exactly one source program. The source program is made up of one or more files. (The standard input is also a file.) If \c as\c is given no file names it attempts to read one input file from the \c as\c standard input, which is normally your terminal. You may have to type \c ctl-D\c to tell \c as\c there is no more program to assemble. Use `\|\c -\^-\c \|' if you need to explicitly name the standard input file in your command line. as\c may write warnings and error messages to the standard error file (usually your terminal). This should not happen when \c as\c is run automatically by a compiler. Warnings report an assumption made so that \c as\c could keep assembling a flawed program; errors report a grave problem that stops the assembly.
OPTIONS

-a \||\| -al \||\| -as Turn on assembly listings; `\|\c -al\c \|', listing only, `\|\c -as\c \|', symbols only, `\|\c -a\c \|', everything.

-D This option is accepted only for script compatibility with calls to other assemblers; it has no effect on \c as\c .

-f ``fast''--skip preprocessing (assume source is compiler output).

"-I " path Add path to the search list for .include directives.

-K Issue warnings when difference tables altered for long displacements.

-L Keep (in symbol table) local symbols, starting with `\|\c L\c \|'

"-o " objfile Name the object-file output from \c as

-R Fold data section into text section

-v Announce \c as\c version

-W Suppress warning messages

"-\^-" " | " "files\|.\|.\|." Source files to assemble, or standard input (\c "-\^-" ")"

-A var (When configured for Intel 960.) Specify which variant of the 960 architecture is the target.

-b (When configured for Intel 960.) Add code to collect statistics about branches taken.

-norelax (When configured for Intel 960.) Do not alter compare-and-branch instructions for long displacements; error if necessary.

-l (When configured for Motorola 68000).

Shorten references to undefined symbols, to one word instead of two.

"-mc68000" "\||\|" "-mc68010" "\||\|" "-mc68020" (When configured for Motorola 68000).

Specify what processor in the 68000 family is the target (default 68020)

Options may be in any order, and may be before, after, or between file names. The order of file names is significant. `\|\c -\^-\c \|' (two hyphens) by itself names the standard input file explicitly, as one of the files for \c as\c to assemble. Except for `\|\c -\^-\c \|' any command line argument that begins with a hyphen (`\|\c -\c \|') is an option. Each option changes the behavior of \c as\c . No option changes the way another option works. An option is a `\|\c -\c \|' followed by one or more letters; the case of the letter is important. All options are optional. The `\|\c -o\c \|' option expects exactly one file name to follow. The file name may either immediately follow the option's letter (compatible with older assemblers) or it may be the next command argument (GNU standard). These two command lines are equivalent:

as -o my-object-file.o mumble.s

as -omy-object-file.o mumble.s

"SEE ALSO"
"`\|" as "\|'" entry in info\c ; Using as: The GNU Assembler\c ; gcc "(" 1 ")," ld "(" 1 ")."
COPYING
Copyright (c) 1991, 1992 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.