Next: Invoking Prev: Top Up: Top


   Here is a brief summary of how to invoke `as'.  For details, *note
Comand-Line Options: Invoking..

     as [ -a[dhlns] ] [ -D ] [ -f ] [ -I PATH ]
      [ -K ] [ -L ] [ -o OBJFILE ] [ -R ]
      [ --statistics] [ -v ] [ -W ] [ -Z ]
      [ -Av6 | -Av7 | -Av8 | -Asparclite | -bump ]
      [ -ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC ]
      [ -b ] [ -norelax ]
      [ -l ] [ -m68000 | -m68010 | -m68020 | ... ]
      [ -nocpp ] [ -EL ] [ -EB ] [ -G NUM ]
      [ -mips1 ] [ -mips2 ] [ -mips3 ]
      [ --trap ] [ --break ]
      [ -- | FILES ... ]

     Turn on listings, in any of a variety of ways:

          omit debugging directives from listing

          include high-level source

          assembly listing

          no forms processing


     You may combine these options; for example, use `-aln' for assembly
     listing without forms processing.  By itself, `-a' defaults to
     `-ahls'--that is, all listings turned on.

     This option is accepted only for script compatibility with calls to
     other assemblers; it has no effect on `as'.

     "fast"--skip whitespace and comment preprocessing (assume source is
     compiler output)

     Add PATH to the search list for `.include' directives

     Issue warnings when difference tables altered for long

     Keep (in symbol table) local symbols, starting with `L'

     Name the object-file output from `as'

     Fold data section into text section

     Display maximum space (in bytes), and total time (in seconds),
     taken by assembly.

     Announce `as' version

     Suppress warning messages

     Generate object file even after errors

`-- | FILES ...'
     Standard input, or source files to assemble.

   The following options are available when as is configured for the
Intel 80960 processor.

`-ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC'
     Specify which variant of the 960 architecture is the target.

     Add code to collect statistics about branches taken.

     Do not alter compare-and-branch instructions for long
     displacements; error if necessary.

   The following options are available when as is configured for the
Motorola 68000 series.

     Shorten references to undefined symbols, to one word instead of

`-m68000 | -m68008 | -m68010 | -m68020 | -m68030 | -m68040'
`| -m68302 | -m68331 | -m68332 | -m68333 | -m68340 | -mcpu32'
     Specify what processor in the 68000 family is the target.  The
     default is normally the 68020, but this can be changed at
     configuration time.

`-m68881 | -m68882 | -mno-68881 | -mno-68882'
     The target machine does (or does not) have a floating-point
     coprocessor.  The default is to assume a coprocessor for 68020,
     68030, and cpu32.  Although the basic 68000 is not compatible with
     the 68881, a combination of the two can be specified, since it's
     possible to do emulation of the coprocessor instructions with the
     main processor.

`-m68851 | -mno-68851'
     The target machine does (or does not) have a memory-management
     unit coprocessor.  The default is to assume an MMU for 68020 and

   The following options are available when `as' is configured for the
SPARC architecture:

`-Av6 | -Av7 | -Av8 | -Asparclite'
     Explicitly select a variant of the SPARC architecture.

     Warn when the assembler switches to another architecture.

   The following options are available when as is configured for a MIPS

`-G NUM'
     This option sets the largest size of an object that can be
     referenced implicitly with the `gp' register.  It is only accepted
     for targets that use ECOFF format, such as a DECstation running
     Ultrix.  The default value is 8.

     Generate "big endian" format output.

     Generate "little endian" format output.

     Generate code for a particular MIPS Instruction Set Architecture
     level.  `-mips1' corresponds to the R2000 and R3000 processors,
     `-mips2' to the R6000 processor, and `-mips3' to the R4000

     `as' ignores this option.  It is accepted for compatibility with
     the native tools.

     Control how to deal with multiplication overflow and division by
     zero.  `--trap' or `--no-break' (which are synonyms) take a trap
     exception (and only work for Instruction Set Architecture level 2
     and higher); `--break' or `--no-trap' (also synonyms, and the
     default) take a break exception.

* Manual
Structure of this Manual
* GNU Assembler
as, the GNU Assembler
* Object Formats
Object File Formats
* Command Line
Command Line
* Input Files
Input Files
* Object
Output (Object) File
* Errors
Error and Warning Messages

automatically generated by info2www