Reference: as
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:52:14Z

#

| Chapter 2 UNIX Commands |

## as

    as [options] files

Generate an object file from each specified assembly language source `file`. Object files have the same root name as source files but replace the .s suffix with .o. There may be additional system-specific options. See also dis.

### Options

-m

  Run m4 on `file`.

-n

  Turn off optimization of long/short addresses.

-o `objfile`

  Place output in object file `objfile` (default is `file`.o).

-Q`c`

  Put the assembler's version number in the object file (when `c` = y); default is not to put it (`c` = n).

-R

  Remove `file` upon completion.

-T

  Force obsolete assembler directives to be obeyed.

-V

  Display the version number of the assembler.

-Y [`key`,] `dir`

  Search directory `dir` for the m4 preprocessor (if `key` is m), for the file containing predefined macros (if `key` is d), or for both (if `key` is omitted).

Reference: ar |  | Reference: at