man(1) Manual page archive


     AS(1)                                                       AS(1)

     NAME
          as - assembler

     SYNOPSIS
          as [ option ... ] [ name ... ]

     DESCRIPTION
          As assembles the named files, or the standard input if no
          file name is specified.  The options are:

          -dn  Specifies the number of bytes n (1, 2, or 4) to be
               assembled for offsets which involve forward or external
               references, and which have sizes unspecified in the
               assembly language.  Default is -d4.

          -L   Save defined labels that begin with `L', which are nor-
               mally discarded to save space in the resultant symbol
               table.  The compilers generate such temporary labels.

          -V   Use virtual memory for intermediate storage, rather
               than a temporary file.

          -W   Do not complain about errors.

          -J   Use long branches to resolve jumps when byte-
               displacement branches are insufficient.  This must be
               used when a compiler-generated assembly contains
               branches of more than 32K bytes.

          -R   Make initialized data segments read-only, by concate-
               nating them to the text segments.  This obviates the
               need to run editor scripts on assembly code to make
               initialized data read-only and shared.

          -t   Specifies a directory to receive the temporary file,
               other than the default

          -oobj
               Place output in file obj. Default is

          All undefined symbols in the assembly are treated as global.

     FILES
          default temporary file
          default object file

     SEE ALSO
          ld(1), nm(1), adb(1), pi(9.1), a.out(5)
          J. F. Reiser and R. R. Henry `Assembler Reference Manual',
          Unix Programmer's Manual, Seventh Edition, Virtual 1980,

     AS(1)                                                       AS(1)

          Volume 2C (Berkeley)

     BUGS
          -J should be eliminated; the assembler should automatically
          choose among byte, word and long branches.