-->

Previous | Table of Contents | Next

Page 7

t Display a table listing the contents of archive, or those of the files listed in files that are present in the archive. Normally, only the membername is shown; if you also want to see the modes (permissions), timestamp, owner, group, and size, you can request that by also specifying the v modifier.
If you do not specify any files, all files in the archive are listed.
If there is more than one file with the same name (say, fie) in an archive (say, b.a), ar t b.a fie will list only the first instance; to see them all, you must ask for a complete listing—in our example, ar t b.a.
x Extract members (named files) from the archive. You can use the v modifier with this operation to request that ar list each name as it extracts it.
If you do not specify any files, all files in the archive are extracted.

A number of modifiers (mod) may immediately follow the p keyletter, to specify variations on an operation's behavior, as follows:

a Add new files after an existing member of the archive. If you use the modifier a, the name of an existing archive member must be present as the membername argument, before the archive specification.
b Add new files before an existing member of the archive. If you use the modifier b, the name of an existing archive member must be present as the membername argument, before the archive specification (same as i).
c Create the archive. The specified archive is always created if it didn't exist when you request an update. But a warning is issued unless you specify in advance that you expect to create it by using this modifier.
i Insert new files before an existing member of the archive. If you use the modifier i, the name of an existing archive member must be present as the membername argument, before the archive specification. (same as b).
l This modifier is accepted but not used.
o Preserve the original dates of members when extracting them. If you do not specify this modifier, files extracted from the archive will be stamped with the time of extraction.
s Write an object-file index into the archive, or update an existing one, even if no other change is made to the archive. You may use this modifier flag either with any operation, or alone. Running ar s on an archive is equivalent to running ranlib on it.
u Normally, ar r... inserts all files listed into the archive. If you would like to insert only those of the files you list that are newer than existing members of the same names, use this modifier. The u modifier is allowed only for the operation r (replace). In particular, the combination qu is not allowed, since checking the timestamps would lose any speed advantage from the operation q.
v This modifier requests the verbose version of an operation. Many operations display additional information, such as filenames processed, when the modifier v is appended.
V This modifier shows the version number of ar.

SEE ALSO

binutils entry in info; The GNU Binary Utilities, Roland H. Pesch (October 1991); nm(1), anlib(1)

COPYING

Copyright " 1991 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.

Cygnus Support, 5 November 1991

Page 8

arch

arch—Print architecture

SYNOPSIS


arch

DESCRIPTION

arch displays machine architecture type.

SEE ALSO

uname(1), uname(2) Debian GNU/Linux, 15 January 1994

GNU as

GNU as—The portable GNU assembler

SYNOPSIS

as [ _a | _al | -as ][_D ][_f ][_I path ][_K ][_L ][_o objfile ][_R ][_v ][_w ][__\|\

files ...]

i960-only options:


[ _ACA| _ACA A | _ACB | _ACC| _AKA| _AKB | _AKC| _AMC][_b ][_no-relax ]

m680x0-only options:


[ _l ][_mc68000| _mc68010| _mc68020]

DESCRIPTION

GNU as 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 pseudo-ops) and assembler syntax.

For information on the syntax and pseudo-ops used by GNU as, see as entry in info (or the manual Using as: The GNU Assembler).

as is primarily intended to assemble the output of the GNU C compiler gcc for use by the linker ld. Nevertheless, we've tried to make as assemble correctly everything that the native assembler would. This doesn't mean as 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 as, 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 as is given no filenames, it attempts to read one input file from the as standard input, which is normally your terminal. You may have to type Ctrl-D to tell as there is no more program to assemble. Use __ if you need to explicitly name the standard input file in your command line.

as may write warnings and error messages to the standard error file (usually your terminal). This should not happen when as is run automatically by a compiler. Warnings report an assumption made so that as could keep assembling a flawed program; errors report a grave problem that stops the assembly.

Previous | Table of Contents | Next