⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 as.1

📁 MinGW+MSYS必备的开发工具链
💻 1
📖 第 1 页 / 共 3 页
字号:
.IP "\fB\-ac\fR" 4.IX Item "-ac"omit false conditionals.IP "\fB\-ad\fR" 4.IX Item "-ad"omit debugging directives.IP "\fB\-ah\fR" 4.IX Item "-ah"include high-level source.IP "\fB\-al\fR" 4.IX Item "-al"include assembly.IP "\fB\-am\fR" 4.IX Item "-am"include macro expansions.IP "\fB\-an\fR" 4.IX Item "-an"omit forms processing.IP "\fB\-as\fR" 4.IX Item "-as"include symbols.IP "\fB=file\fR" 4.IX Item "=file"set the name of the listing file.RE.RS 4.SpYou may combine these options; for example, use \fB\-aln\fR for assemblylisting without forms processing.  The \fB=file\fR option, if used, must bethe last one.  By itself, \fB\-a\fR defaults to \fB\-ahls\fR..RE.IP "\fB\-\-alternate\fR" 4.IX Item "--alternate"Begin in alternate macro mode, see \fBAltmacro,,\f(CB\*(C`.altmacro\*(C'\fB\fR..IP "\fB\-D\fR" 4.IX Item "-D"Ignored.  This option is accepted for script compatibility with calls toother assemblers..IP "\fB\-\-defsym\fR \fIsym\fR\fB=\fR\fIvalue\fR" 4.IX Item "--defsym sym=value"Define the symbol \fIsym\fR to be \fIvalue\fR before assembling the input file.\&\fIvalue\fR must be an integer constant.  As in C, a leading \fB0x\fRindicates a hexadecimal value, and a leading \fB0\fR indicates an octal value..IP "\fB\-f\fR" 4.IX Item "-f"\&\*(L"fast\*(R"\-\-\-skip whitespace and comment preprocessing (assume source iscompiler output)..IP "\fB\-g\fR" 4.IX Item "-g".PD 0.IP "\fB\-\-gen\-debug\fR" 4.IX Item "--gen-debug".PDGenerate debugging information for each assembler source line using whicheverdebug format is preferred by the target.  This currently means either \s-1STABS\s0,\&\s-1ECOFF\s0 or \s-1DWARF2\s0..IP "\fB\-\-gstabs\fR" 4.IX Item "--gstabs"Generate stabs debugging information for each assembler line.  Thismay help debugging assembler code, if the debugger can handle it..IP "\fB\-\-gstabs+\fR" 4.IX Item "--gstabs+"Generate stabs debugging information for each assembler line, with \s-1GNU\s0extensions that probably only gdb can handle, and that could make otherdebuggers crash or refuse to read your program.  Thismay help debugging assembler code.  Currently the only \s-1GNU\s0 extension isthe location of the current working directory at assembling time..IP "\fB\-\-gdwarf\-2\fR" 4.IX Item "--gdwarf-2"Generate \s-1DWARF2\s0 debugging information for each assembler line.  Thismay help debugging assembler code, if the debugger can handle it.  Note\-\-\-thisoption is only supported by some targets, not all of them..IP "\fB\-\-help\fR" 4.IX Item "--help"Print a summary of the command line options and exit..IP "\fB\-\-target\-help\fR" 4.IX Item "--target-help"Print a summary of all target specific options and exit..IP "\fB\-I\fR \fIdir\fR" 4.IX Item "-I dir"Add directory \fIdir\fR to the search list for \f(CW\*(C`.include\*(C'\fR directives..IP "\fB\-J\fR" 4.IX Item "-J"Don't warn about signed overflow..IP "\fB\-K\fR" 4.IX Item "-K"Issue warnings when difference tables altered for long displacements..IP "\fB\-L\fR" 4.IX Item "-L".PD 0.IP "\fB\-\-keep\-locals\fR" 4.IX Item "--keep-locals".PDKeep (in the symbol table) local symbols.  On traditional a.out systemsthese start with \fBL\fR, but different systems have different locallabel prefixes..IP "\fB\-\-listing\-lhs\-width=\fR\fInumber\fR" 4.IX Item "--listing-lhs-width=number"Set the maximum width, in words, of the output data column for an assemblerlisting to \fInumber\fR..IP "\fB\-\-listing\-lhs\-width2=\fR\fInumber\fR" 4.IX Item "--listing-lhs-width2=number"Set the maximum width, in words, of the output data column for continuationlines in an assembler listing to \fInumber\fR..IP "\fB\-\-listing\-rhs\-width=\fR\fInumber\fR" 4.IX Item "--listing-rhs-width=number"Set the maximum width of an input source line, as displayed in a listing, to\&\fInumber\fR bytes..IP "\fB\-\-listing\-cont\-lines=\fR\fInumber\fR" 4.IX Item "--listing-cont-lines=number"Set the maximum number of lines printed in a listing for a single line of inputto \fInumber\fR + 1..IP "\fB\-o\fR \fIobjfile\fR" 4.IX Item "-o objfile"Name the object-file output from \fBas\fR \fIobjfile\fR..IP "\fB\-R\fR" 4.IX Item "-R"Fold the data section into the text section..SpSet the default size of \s-1GAS\s0's hash tables to a prime number close to\&\fInumber\fR.  Increasing this value can reduce the length of time it takes theassembler to perform its tasks, at the expense of increasing the assembler'smemory requirements.  Similarly reducing this value can reduce the memoryrequirements at the expense of speed..IP "\fB\-\-reduce\-memory\-overheads\fR" 4.IX Item "--reduce-memory-overheads"This option reduces \s-1GAS\s0's memory requirements, at the expense of making theassembly processes slower.  Currently this switch is a synonym for\&\fB\-\-hash\-size=4051\fR, but in the future it may have other effects as well..IP "\fB\-\-statistics\fR" 4.IX Item "--statistics"Print the maximum space (in bytes) and total time (in seconds) used byassembly..IP "\fB\-\-strip\-local\-absolute\fR" 4.IX Item "--strip-local-absolute"Remove local absolute symbols from the outgoing symbol table..IP "\fB\-v\fR" 4.IX Item "-v".PD 0.IP "\fB\-version\fR" 4.IX Item "-version".PDPrint the \fBas\fR version..IP "\fB\-\-version\fR" 4.IX Item "--version"Print the \fBas\fR version and exit..IP "\fB\-W\fR" 4.IX Item "-W".PD 0.IP "\fB\-\-no\-warn\fR" 4.IX Item "--no-warn".PDSuppress warning messages..IP "\fB\-\-fatal\-warnings\fR" 4.IX Item "--fatal-warnings"Treat warnings as errors..IP "\fB\-\-warn\fR" 4.IX Item "--warn"Don't suppress warning messages or treat them as errors..IP "\fB\-w\fR" 4.IX Item "-w"Ignored..IP "\fB\-x\fR" 4.IX Item "-x"Ignored..IP "\fB\-Z\fR" 4.IX Item "-Z"Generate an object file even after errors..IP "\fB\-\- |\fR \fIfiles\fR \fB...\fR" 4.IX Item "-- | files ..."Standard input, or source files to assemble..PPThe following options are available when as is configured foran \s-1ARC\s0 processor..IP "\fB\-marc[5|6|7|8]\fR" 4.IX Item "-marc[5|6|7|8]"This option selects the core processor variant..IP "\fB\-EB | \-EL\fR" 4.IX Item "-EB | -EL"Select either big-endian (\-EB) or little-endian (\-EL) output..PPThe following options are available when as is configured for the \s-1ARM\s0processor family..IP "\fB\-mcpu=\fR\fIprocessor\fR\fB[+\fR\fIextension\fR\fB...]\fR" 4.IX Item "-mcpu=processor[+extension...]"Specify which \s-1ARM\s0 processor variant is the target..IP "\fB\-march=\fR\fIarchitecture\fR\fB[+\fR\fIextension\fR\fB...]\fR" 4.IX Item "-march=architecture[+extension...]"Specify which \s-1ARM\s0 architecture variant is used by the target..IP "\fB\-mfpu=\fR\fIfloating-point-format\fR" 4.IX Item "-mfpu=floating-point-format"Select which Floating Point architecture is the target..IP "\fB\-mfloat\-abi=\fR\fIabi\fR" 4.IX Item "-mfloat-abi=abi"Select which floating point \s-1ABI\s0 is in use..IP "\fB\-mthumb\fR" 4.IX Item "-mthumb"Enable Thumb only instruction decoding..IP "\fB\-mapcs\-32 | \-mapcs\-26 | \-mapcs\-float | \-mapcs\-reentrant\fR" 4.IX Item "-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant"Select which procedure calling convention is in use..IP "\fB\-EB | \-EL\fR" 4.IX Item "-EB | -EL"Select either big-endian (\-EB) or little-endian (\-EL) output..IP "\fB\-mthumb\-interwork\fR" 4.IX Item "-mthumb-interwork"Specify that the code has been generated with interworking between Thumb and\&\s-1ARM\s0 code in mind..IP "\fB\-k\fR" 4.IX Item "-k"Specify that \s-1PIC\s0 code has been generated..PPSee the info pages for documentation of the CRIS-specific options..PPThe following options are available when as is configured fora D10V processor..IP "\fB\-O\fR" 4.IX Item "-O"Optimize output by parallelizing instructions..PPThe following options are available when as is configured for a D30Vprocessor..IP "\fB\-O\fR" 4.IX Item "-O"Optimize output by parallelizing instructions..IP "\fB\-n\fR" 4.IX Item "-n"Warn when nops are generated..IP "\fB\-N\fR" 4.IX Item "-N"Warn when a nop after a 32\-bit multiply instruction is generated..PPThe following options are available when as is configured for theIntel 80960 processor..IP "\fB\-ACA | \-ACA_A | \-ACB | \-ACC | \-AKA | \-AKB | \-AKC | \-AMC\fR" 4.IX Item "-ACA | -ACA_A | -ACB | -ACC | -AKA | -AKB | -AKC | -AMC"Specify which variant of the 960 architecture is the target..IP "\fB\-b\fR" 4.IX Item "-b"Add code to collect statistics about branches taken..IP "\fB\-no\-relax\fR" 4.IX Item "-no-relax"Do not alter compare-and-branch instructions for long displacements;error if necessary..PPThe following options are available when as is configured for theUbicom \s-1IP2K\s0 series..IP "\fB\-mip2022ext\fR" 4.IX Item "-mip2022ext"Specifies that the extended \s-1IP2022\s0 instructions are allowed..IP "\fB\-mip2022\fR" 4.IX Item "-mip2022"Restores the default behaviour, which restricts the permitted instructions tojust the basic \s-1IP2022\s0 ones..PPThe following options are available when as is configured for theRenesas M32C and M16C processors..IP "\fB\-m32c\fR" 4.IX Item "-m32c"Assemble M32C instructions..IP "\fB\-m16c\fR" 4.IX Item "-m16c"Assemble M16C instructions (the default)..PPThe following options are available when as is configured for theRenesas M32R (formerly Mitsubishi M32R) series..IP "\fB\-\-m32rx\fR" 4.IX Item "--m32rx"Specify which processor in the M32R family is the target.  The defaultis normally the M32R, but this option changes it to the M32RX..IP "\fB\-\-warn\-explicit\-parallel\-conflicts or \-\-Wp\fR" 4.IX Item "--warn-explicit-parallel-conflicts or --Wp"Produce warning messages when questionable parallel constructs areencountered. .IP "\fB\-\-no\-warn\-explicit\-parallel\-conflicts or \-\-Wnp\fR" 4.IX Item "--no-warn-explicit-parallel-conflicts or --Wnp"Do not produce warning messages when questionable parallel constructs are encountered. .PPThe following options are available when as is configured for theMotorola 68000 series..IP "\fB\-l\fR" 4.IX Item "-l"Shorten references to undefined symbols, to one word instead of two..IP "\fB\-m68000 | \-m68008 | \-m68010 | \-m68020 | \-m68030\fR" 4.IX Item "-m68000 | -m68008 | -m68010 | -m68020 | -m68030".PD 0.IP "\fB| \-m68040 | \-m68060 | \-m68302 | \-m68331 | \-m68332\fR" 4.IX Item "| -m68040 | -m68060 | -m68302 | -m68331 | -m68332".IP "\fB| \-m68333 | \-m68340 | \-mcpu32 | \-m5200\fR" 4.IX Item "| -m68333 | -m68340 | -mcpu32 | -m5200".PDSpecify what processor in the 68000 family is the target.  The defaultis normally the 68020, but this can be changed at configuration time..IP "\fB\-m68881 | \-m68882 | \-mno\-68881 | \-mno\-68882\fR" 4.IX Item "-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.  Althoughthe basic 68000 is not compatible with the 68881, a combination of thetwo can be specified, since it's possible to do emulation of thecoprocessor instructions with the main processor..IP "\fB\-m68851 | \-mno\-68851\fR" 4.IX Item "-m68851 | -mno-68851"The target machine does (or does not) have a memory-managementunit coprocessor.  The default is to assume an \s-1MMU\s0 for 68020 and up..PPFor details about the \s-1PDP\-11\s0 machine dependent features options,see \fBPDP\-11\-Options\fR..IP "\fB\-mpic | \-mno\-pic\fR" 4.IX Item "-mpic | -mno-pic"Generate position-independent (or position\-dependent) code.  Thedefault is \fB\-mpic\fR..IP "\fB\-mall\fR" 4.IX Item "-mall".PD 0.IP "\fB\-mall\-extensions\fR" 4.IX Item "-mall-extensions".PDEnable all instruction set extensions.  This is the default..IP "\fB\-mno\-extensions\fR" 4.IX Item "-mno-extensions"Disable all instruction set extensions..IP "\fB\-m\fR\fIextension\fR \fB| \-mno\-\fR\fIextension\fR" 4.IX Item "-mextension | -mno-extension"Enable (or disable) a particular instruction set extension..IP "\fB\-m\fR\fIcpu\fR" 4.IX Item "-mcpu"Enable the instruction set extensions supported by a particular \s-1CPU\s0, anddisable all other extensions..IP "\fB\-m\fR\fImachine\fR" 4.IX Item "-mmachine"Enable the instruction set extensions supported by a particular machinemodel, and disable all other extensions..PPThe following options are available when as is configured fora picoJava processor..IP "\fB\-mb\fR" 4.IX Item "-mb"Generate \*(L"big endian\*(R" format output..IP "\fB\-ml\fR" 4.IX Item "-ml"Generate \*(L"little endian\*(R" format output..PPThe following options are available when as is configured for theMotorola 68HC11 or 68HC12 series..IP "\fB\-m68hc11 | \-m68hc12 | \-m68hcs12\fR" 4.IX Item "-m68hc11 | -m68hc12 | -m68hcs12"Specify what processor is the target.  The default isdefined by the configuration option when building the assembler..IP "\fB\-mshort\fR" 4.IX Item "-mshort"Specify to use the 16\-bit integer \s-1ABI\s0..IP "\fB\-mlong\fR" 4.IX Item "-mlong"Specify to use the 32\-bit integer \s-1ABI\s0.  .IP "\fB\-mshort\-double\fR" 4.IX Item "-mshort-double"Specify to use the 32\-bit double \s-1ABI\s0.  .IP "\fB\-mlong\-double\fR" 4.IX Item "-mlong-double"Specify to use the 64\-bit double \s-1ABI\s0.  .IP "\fB\-\-force\-long\-branches\fR" 4.IX Item "--force-long-branches"Relative branches are turned into absolute ones. This concernsconditional branches, unconditional branches and branches to asub routine..IP "\fB\-S | \-\-short\-branches\fR" 4.IX Item "-S | --short-branches"Do not turn relative branches into absolute oneswhen the offset is out of range..IP "\fB\-\-strict\-direct\-mode\fR" 4.IX Item "--strict-direct-mode"Do not turn the direct addressing mode into extended addressing modewhen the instruction does not support direct addressing mode.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -