📄 as.1
字号:
.\" Copyright (c) 1991, 1992, 1996, 1997, 1998, 2000 Free Software Foundation.\" See section COPYING for conditions for redistribution.TH as 1 "29 March 1996" "Free Software Foundation" "GNU Development Tools".SH NAMEGNU as \- the portable GNU assembler..SH SYNOPSIS.na.B as.RB "[\|" \-a "[\|" dhlns "\|]" \c\&[\|\=\c.I file\c\&\|]\|].RB "[\|" \-D "\|]".RB "[\|" \-\-defsym\ SYM=VAL "\|]".RB "[\|" \-f "\|]".RB "[\|" \-\-gstabs "\|]".RB "[\|" \-I.I path\c\&\|].RB "[\|" \-K "\|]".RB "[\|" \-L "\|]".RB "[\|" \-M\ |\ \-\-mri "\|]".RB "[\|" \-o .I objfile\c\&\|].RB "[\|" \-R "\|]".RB "[\|" \-\-traditional\-format "\|]".RB "[\|" \-v "\|]".RB "[\|" \-w "\|]".RB "[\|" \-\^\- "\ |\ " \c.I files\c\&\|.\|.\|.\|].I i960-only options:.br.RB "[\|" \-ACA "\||\|" \-ACA_A "\||\|" \-ACB\c.RB "\||\|" \-ACC "\||\|" \-AKA "\||\|" \-AKB\c.RB "\||\|" \-AKC "\||\|" \-AMC "\|]".RB "[\|" \-b "\|]".RB "[\|" \-no-relax "\|]".I m680x0-only options:.br.RB "[\|" \-l "\|]".RB "[\|" \-mc68000 "\||\|" \-mc68010 "\||\|" \-mc68020 "\|]".ad b.SH DESCRIPTIONGNU \c.B as\c\& is really a family of assemblers. If you use (or have used) the GNU assembler on one architecture, youshould find a fairly similar environment when you use it on anotherarchitecture. Each version has much in common with the others,including object file formats, most assembler directives (often called\c.I pseudo-ops)\c\& and assembler syntax. For information on the syntax and pseudo-ops used by GNU \c.B as\c\&, see `\|\c.B as\c\|' entry in \c.B info \c(or the manual \c.I.IUsing as: The GNU Assembler\c\&).\c.B as\c\& is primarily intended to assemble the output of the GNU Ccompiler \c.B gcc\c\& for use by the linker \c.B ld\c\&. Nevertheless,we've tried to make \c.B as\c\& assemble correctly everything that the nativeassembler would.This doesn't mean \c.B as\c\& always uses the same syntax as anotherassembler for the same architecture; for example, we know of severalincompatible versions of 680x0 assembly language syntax.Each time you run \c.B as\c\& it assembles exactly one sourceprogram. The source program is made up of one or more files.(The standard input is also a file.)If \c.B as\c\& is given no file names it attempts to read one input filefrom the \c.B as\c\& standard input, which is normally your terminal. Youmay have to type \c.B ctl-D\c\& to tell \c.B as\c\& there is no more programto assemble. Use `\|\c.B \-\^\-\c\|' if you need to explicitly name the standard input filein your command line..B as\c\& may write warnings and error messages to the standard errorfile (usually your terminal). This should not happen when \c.B as\c\& isrun automatically by a compiler. Warnings report an assumption made sothat \c.B as\c\& could keep assembling a flawed program; errors report agrave problem that stops the assembly..SH OPTIONS.TP.BR \-aTurn on assembly listings. There are various suboptions..B domits debugging directives..B hincludes the high level source code; this is only available if thesource file can be found, and the code was compiled with.B \-g..B lincludes an assembly listing..B nomits forms processing..B sincludes a symbol listing..B =.I filesets the listing file name; this must be the last suboption.The default suboptions are.B hls..TP.B \-DThis option is accepted only for script compatibility with calls toother assemblers; it has no effect on \c.B as\c\&..TP.B \-\-defsym SYM=VALUEDefine the symbol SYM to be VALUE before assembling the input file.VALUE must be an integer constant. As in C, a leading 0x indicates ahexadecimal value, and a leading 0 indicates an octal value..TP.B \-f``fast''--skip preprocessing (assume source is compiler output)..TP.BI "\-I\ " pathAdd .I pathto the search list for .B .includedirectives..TP.B \-\-gstabsGenerate stabs debugging information for each assembler line. Thismay help debugging assembler code, if the debugger can handle it..TP.B \-KIssue warnings when difference tables altered for long displacements..TP.B \-LKeep (in symbol table) local symbols, starting with `\|\c.B L\c\|'.TP.B \-M, \-\-mriAssemble in MRI compatibility mode..TP.BI "\-o\ " objfileName the object-file output from \c.B as.TP.B \-RFold data section into text section.TP.B \-\-traditional\-formatUse same format as native assembler, when possible..TP.B \-vAnnounce \c.B as\c\& version.TP.B \-W, \-\-no-warnSuppress warning messages..TP.B \-\-fatal\-warningsConsider warnings to be fatal..TP.B \-\-warnJust warn on warnings..TP.IR "\-\^\-" "\ |\ " "files\|.\|.\|."Source files to assemble, or standard input (\c.BR "\-\^\-" ")".TP.BI \-A var.I(When configured for Intel 960.)Specify which variant of the 960 architecture is the target..TP.B \-b.I(When configured for Intel 960.)Add code to collect statistics about branches taken..TP.B \-no-relax.I(When configured for Intel 960.)Do not alter compare-and-branch instructions for long displacements;error if necessary..TP.B \-l.I(When configured for Motorola 68000). .brShorten references to undefined symbols, to one word instead of two..TP.BR "\-mc68000" "\||\|" "\-mc68010" "\||\|" "\-mc68020".I(When configured for Motorola 68000). .brSpecify what processor in the 68000 family is the target (default 68020).PPOptions may be in any order, and may bebefore, after, or between file names. The order of file names issignificant.`\|\c.B \-\^\-\c\|' (two hyphens) by itself names the standard input fileexplicitly, as one of the files for \c.B as\c\& to assemble.Except for `\|\c.B \-\^\-\c\|' any command line argument that begins with ahyphen (`\|\c.B \-\c\|') is an option. Each option changes the behavior of\c.B as\c\&. No option changes the way another option works. Anoption is a `\|\c.B \-\c\|' followed by one or more letters; the case ofthe letter is important. All options are optional.The `\|\c.B \-o\c\|' option expects exactly one file name to follow. The filename may either immediately follow the option's letter (compatiblewith older assemblers) or it may be the next command argument (GNUstandard). These two command lines are equivalent:.br.Bas\ \ \-o\ \ my\-object\-file.o\ \ mumble.s.br.Bas\ \ \-omy\-object\-file.o\ \ mumble.s.SH "SEE ALSO".RB "`\|" as "\|'"entry in .Binfo\c\&; .IUsing as: The GNU Assembler\c\&;.BR gcc "(" 1 "),".BR ld "(" 1 ").".SH COPYINGCopyright (c) 1991, 1992, 2000 Free Software Foundation, Inc..PPThis document is distributed under the terms of the GNU FreeDocumentation License, version 1.1. That license is described in thesources for this manual page, but it is not displayed here in order tomake this manual more consise. Copies of this license can also beobtained from: http://www.gnu.org/copyleft/.\" GNU Free Documentation License\" Version 1.1, March 2000\" Copyright (C) 2000 Free Software Foundation, Inc.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA \" Everyone is permitted to copy and distribute verbatim\" copies of this license document, but changing it is\" not allowed.\" .PP\" 0. PREAMBLE\" .PP\" The purpose of this License is to make a manual, textbook, or other\" written document "free" in the sense of freedom: to assure everyone\" the effective freedom to copy and redistribute it, with or without\" modifying it, either commercially or noncommercially. Secondarily,\" this License preserves for the author and publisher a way to get\" credit for their work, while not being considered responsible for\" modifications made by others.\" .PP\" This License is a kind of "copyleft", which means that derivative\" works of the document must themselves be free in the same sense. It\" complements the GNU General Public License, which is a copyleft\" license designed for free software.\" .PP\" We have designed this License in order to use it for manuals for free\" software, because free software needs free documentation: a free\" program should come with manuals providing the same freedoms that the\" software does. But this License is not limited to software manuals;\" it can be used for any textual work, regardless of subject matter or\" whether it is published as a printed book. We recommend this License\" principally for works whose purpose is instruction or reference.\" .PP\" 1. APPLICABILITY AND DEFINITIONS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -