📄 arm-linux-gcc.1
字号:
.Sp\&\fI\s-1AVR\s0 Options\fR\&\fB\-mmcu=\fR\fImcu\fR \fB\-msize \-minit\-stack=\fR\fIn\fR \fB\-mno\-interrupts \&\-mcall\-prologues \-mno\-tablejump \-mtiny\-stack\fR.Sp\&\fIMCore Options\fR\&\fB\-mhardlit \-mno\-hardlit \-mdiv \-mno\-div \-mrelax\-immediates \&\-mno\-relax\-immediates \-mwide\-bitfields \-mno\-wide\-bitfields \&\-m4byte\-functions \-mno\-4byte\-functions \-mcallgraph\-data \&\-mno\-callgraph\-data \-mslow\-bytes \-mno\-slow\-bytes \-mno\-lsim \&\-mlittle\-endian \-mbig\-endian \-m210 \-m340 \-mstack\-increment\fR.Sp\&\fI\s-1MMIX\s0 Options\fR\&\fB\-mlibfuncs \-mno\-libfuncs \-mepsilon \-mno\-epsilon \-mabi=gnu \&\-mabi=mmixware \-mzero\-extend \-mknuthdiv \-mtoplevel\-symbols \&\-melf \-mbranch\-predict \-mno\-branch\-predict \-mbase\-addresses \&\-mno\-base\-addresses \-msingle\-exit \-mno\-single\-exit\fR.Sp\&\fI\s-1IA\-64\s0 Options\fR\&\fB\-mbig\-endian \-mlittle\-endian \-mgnu\-as \-mgnu\-ld \-mno\-pic \&\-mvolatile\-asm\-stop \-mb\-step \-mregister\-names \-mno\-sdata \&\-mconstant\-gp \-mauto\-pic \-minline\-float\-divide\-min\-latency \&\-minline\-float\-divide\-max\-throughput \&\-minline\-int\-divide\-min\-latency \&\-minline\-int\-divide\-max\-throughput \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput \&\-mno\-dwarf2\-asm \-mearly\-stop\-bits \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-mt \-pthread \-milp32 \-mlp64\fR.Sp\&\fID30V Options\fR\&\fB\-mextmem \-mextmemory \-monchip \-mno\-asm\-optimize \&\-masm\-optimize \-mbranch\-cost=\fR\fIn\fR \fB\-mcond\-exec=\fR\fIn\fR.Sp\&\fIS/390 and zSeries Options\fR\&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR \&\fB\-mhard\-float \-msoft\-float \-mbackchain \-mno\-backchain \&\-msmall\-exec \-mno\-small\-exec \-mmvcle \-mno\-mvcle \&\-m64 \-m31 \-mdebug \-mno\-debug \-mesa \-mzarch \-mfused\-madd \-mno\-fused\-madd\fR.Sp\&\fI\s-1CRIS\s0 Options\fR\&\fB\-mcpu=\fR\fIcpu\fR \fB\-march=\fR\fIcpu\fR \fB\-mtune=\fR\fIcpu\fR \&\fB\-mmax\-stack\-frame=\fR\fIn\fR \fB\-melinux\-stacksize=\fR\fIn\fR \&\fB\-metrax4 \-metrax100 \-mpdebug \-mcc\-init \-mno\-side\-effects \&\-mstack\-align \-mdata\-align \-mconst\-align \&\-m32\-bit \-m16\-bit \-m8\-bit \-mno\-prologue\-epilogue \-mno\-gotplt \&\-melf \-maout \-melinux \-mlinux \-sim \-sim2 \&\-mmul\-bug\-workaround \-mno\-mul\-bug\-workaround\fR.Sp\&\fI\s-1PDP\-11\s0 Options\fR\&\fB\-mfpu \-msoft\-float \-mac0 \-mno\-ac0 \-m40 \-m45 \-m10 \&\-mbcopy \-mbcopy\-builtin \-mint32 \-mno\-int16 \&\-mint16 \-mno\-int32 \-mfloat32 \-mno\-float64 \&\-mfloat64 \-mno\-float32 \-mabshi \-mno\-abshi \&\-mbranch\-expensive \-mbranch\-cheap \&\-msplit \-mno\-split \-munix\-asm \-mdec\-asm\fR.Sp\&\fIXstormy16 Options\fR\&\fB\-msim\fR.Sp\&\fIXtensa Options\fR\&\fB\-mconst16 \-mno\-const16 \&\-mfused\-madd \-mno\-fused\-madd \&\-mtext\-section\-literals \-mno\-text\-section\-literals \&\-mtarget\-align \-mno\-target\-align \&\-mlongcalls \-mno\-longcalls\fR.Sp\&\fI\s-1FRV\s0 Options\fR\&\fB\-mgpr\-32 \-mgpr\-64 \-mfpr\-32 \-mfpr\-64 \&\-mhard\-float \-msoft\-float \&\-malloc\-cc \-mfixed\-cc \-mdword \-mno\-dword \&\-mdouble \-mno\-double \&\-mmedia \-mno\-media \-mmuladd \-mno\-muladd \&\-mlibrary\-pic \-macc\-4 \-macc\-8 \&\-mpack \-mno\-pack \-mno\-eflags \-mcond\-move \-mno\-cond\-move \&\-mscc \-mno\-scc \-mcond\-exec \-mno\-cond\-exec \&\-mvliw\-branch \-mno\-vliw\-branch \&\-mmulti\-cond\-exec \-mno\-multi\-cond\-exec \-mnested\-cond\-exec \&\-mno\-nested\-cond\-exec \-mtomcat\-stats \&\-mcpu=\fR\fIcpu\fR.IP "\fICode Generation Options\fR" 4.IX Item "Code Generation Options"\&\fB\-fcall\-saved\-\fR\fIreg\fR \fB\-fcall\-used\-\fR\fIreg\fR \&\fB\-ffixed\-\fR\fIreg\fR \fB\-fexceptions \&\-fnon\-call\-exceptions \-funwind\-tables \&\-fasynchronous\-unwind\-tables \&\-finhibit\-size\-directive \-finstrument\-functions \&\-fno\-common \-fno\-ident \&\-fpcc\-struct\-return \-fpic \-fPIC \-fpie \-fPIE \&\-freg\-struct\-return \-fshared\-data \-fshort\-enums \&\-fshort\-double \-fshort\-wchar \&\-fverbose\-asm \-fpack\-struct \-fstack\-check \&\-fstack\-limit\-register=\fR\fIreg\fR \fB\-fstack\-limit\-symbol=\fR\fIsym\fR \&\fB\-fargument\-alias \-fargument\-noalias \&\-fargument\-noalias\-global \-fleading\-underscore \&\-ftls\-model=\fR\fImodel\fR \&\fB\-ftrapv \-fwrapv \-fbounds\-check\fR.Sh "Options Controlling the Kind of Output".IX Subsection "Options Controlling the Kind of Output"Compilation can involve up to four stages: preprocessing, compilationproper, assembly and linking, always in that order. \s-1GCC\s0 is capable ofpreprocessing and compiling several files either into severalassembler input files, or into one assembler input file; then eachassembler input file produces an object file, and linking combines allthe object files (those newly compiled, and those specified as input)into an executable file..PPFor any given input file, the file name suffix determines what kind ofcompilation is done:.IP "\fIfile\fR\fB.c\fR" 4.IX Item "file.c"C source code which must be preprocessed..IP "\fIfile\fR\fB.i\fR" 4.IX Item "file.i"C source code which should not be preprocessed..IP "\fIfile\fR\fB.ii\fR" 4.IX Item "file.ii"\&\*(C+ source code which should not be preprocessed..IP "\fIfile\fR\fB.m\fR" 4.IX Item "file.m"Objective-C source code. Note that you must link with the library\&\fIlibobjc.a\fR to make an Objective-C program work..IP "\fIfile\fR\fB.mi\fR" 4.IX Item "file.mi"Objective-C source code which should not be preprocessed..IP "\fIfile\fR\fB.h\fR" 4.IX Item "file.h"C or \*(C+ header file to be turned into a precompiled header..IP "\fIfile\fR\fB.cc\fR" 4.IX Item "file.cc".PD 0.IP "\fIfile\fR\fB.cp\fR" 4.IX Item "file.cp".IP "\fIfile\fR\fB.cxx\fR" 4.IX Item "file.cxx".IP "\fIfile\fR\fB.cpp\fR" 4.IX Item "file.cpp".IP "\fIfile\fR\fB.CPP\fR" 4.IX Item "file.CPP".IP "\fIfile\fR\fB.c++\fR" 4.IX Item "file.c++".IP "\fIfile\fR\fB.C\fR" 4.IX Item "file.C".PD\&\*(C+ source code which must be preprocessed. Note that in \fB.cxx\fR,the last two letters must both be literally \fBx\fR. Likewise,\&\fB.C\fR refers to a literal capital C..IP "\fIfile\fR\fB.hh\fR" 4.IX Item "file.hh".PD 0.IP "\fIfile\fR\fB.H\fR" 4.IX Item "file.H".PD\&\*(C+ header file to be turned into a precompiled header..IP "\fIfile\fR\fB.f\fR" 4.IX Item "file.f".PD 0.IP "\fIfile\fR\fB.for\fR" 4.IX Item "file.for".IP "\fIfile\fR\fB.FOR\fR" 4.IX Item "file.FOR".PDFortran source code which should not be preprocessed..IP "\fIfile\fR\fB.F\fR" 4.IX Item "file.F".PD 0.IP "\fIfile\fR\fB.fpp\fR" 4.IX Item "file.fpp".IP "\fIfile\fR\fB.FPP\fR" 4.IX Item "file.FPP".PDFortran source code which must be preprocessed (with the traditionalpreprocessor)..IP "\fIfile\fR\fB.r\fR" 4.IX Item "file.r"Fortran source code which must be preprocessed with a \s-1RATFOR\s0preprocessor (not included with \s-1GCC\s0)..IP "\fIfile\fR\fB.ads\fR" 4.IX Item "file.ads"Ada source code file which contains a library unit declaration (adeclaration of a package, subprogram, or generic, or a genericinstantiation), or a library unit renaming declaration (a package,generic, or subprogram renaming declaration). Such files are alsocalled \fIspecs\fR..IP "\fIfile\fR\fB.adb\fR" 4.IX Item "file.adb"Ada source code file containing a library unit body (a subprogram orpackage body). Such files are also called \fIbodies\fR..IP "\fIfile\fR\fB.s\fR" 4.IX Item "file.s"Assembler code..IP "\fIfile\fR\fB.S\fR" 4.IX Item "file.S"Assembler code which must be preprocessed..IP "\fIother\fR" 4.IX Item "other"An object file to be fed straight into linking.Any file name with no recognized suffix is treated this way..PPYou can specify the input language explicitly with the \fB\-x\fR option:.IP "\fB\-x\fR \fIlanguage\fR" 4.IX Item "-x language"Specify explicitly the \fIlanguage\fR for the following input files(rather than letting the compiler choose a default based on the filename suffix). This option applies to all following input files untilthe next \fB\-x\fR option. Possible values for \fIlanguage\fR are:.Sp.Vb 8\& c c-header cpp-output\& c++ c++-header c++-cpp-output\& objective-c objective-c-header objc-cpp-output\& assembler assembler-with-cpp\& ada\& f77 f77-cpp-input ratfor\& java\& treelang.Ve.IP "\fB\-x none\fR" 4.IX Item "-x none"Turn off any specification of a language, so that subsequent files arehandled according to their file name suffixes (as they are if \fB\-x\fRhas not been used at all)..IP "\fB\-pass\-exit\-codes\fR" 4.IX Item "-pass-exit-codes"Normally the \fBgcc\fR program will exit with the code of 1 if anyphase of the compiler returns a non-success return code. If you specify\&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program will instead return withnumerically highest error produced by any phase that returned an errorindication..PPIf you only want some of the stages of compilation, you can use\&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, andone of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where\&\fBgcc\fR is to stop. Note that some combinations (for example,\&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all..IP "\fB\-c\fR" 4.IX Item "-c"Compile or assemble the source files, but do not link. The linkingstage simply is not done. The ultimate output is in the form of anobject file for each source file..SpBy default, the object file name for a source file is made by replacingthe suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR..SpUnrecognized input files, not requiring compilation or assembly, areignored..IP "\fB\-S\fR" 4.IX Item "-S"Stop after the stage of compilation proper; do not assemble. The outputis in the form of an assembler code file for each non-assembler inputfile specified..SpBy default, the assembler file name for a source file is made byreplacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR..SpInput files that don't require compilation are ignored..IP "\fB\-E\fR" 4.IX Item "-E"Stop after the preprocessing stage; do not run the compiler proper. Theoutput is in the form of preprocessed source code, which is sent to thestandard output..SpInput files which don't require preprocessing are ignored..IP "\fB\-o\fR \fIfile\fR" 4.IX Item "-o file"Place output in file \fIfile\fR. This applies regardless to whateversort of output is being produced, whether it be an executable file,an object file, an assembler file or preprocessed C code..SpIf you specify \fB\-o\fR when compiling more than one input file, oryou are producing an executable file as output, all the source fileson the command line will be compiled at once..SpIf \fB\-o\fR is not specified, the default is to put an executable filein \fIa.out\fR, the object file for \fI\fIsource\fI.\fIsuffix\fI\fR in\&\fI\fIsource\fI.o\fR, its assembler file in \fI\fIsource\fI.s\fR, andall preprocessed C source on standard output..IP "\fB\-v\fR" 4.IX Item "-v"Print (on standard error output) the commands executed to run the stagesof compilation. Also print the version number of the compiler driverprogram and of the preprocessor and the compiler proper..IP "\fB\-###\fR" 4.IX Item "-###"Like \fB\-v\fR except the commands are not executed and all commandarguments are quoted. This is useful for shell scripts to capture thedriver-generated command lines..IP "\fB\-pipe\fR" 4.IX Item "-pipe"Use pipes rather than temporary files for communication between thevarious stages of compilation. This fails to work on some systems wherethe assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler hasno trouble..IP "\fB\-\-help\fR" 4.IX Item "--help"Print (on the standard output) a description of the command line optionsunderstood by \fBgcc\fR. If the \fB\-v\fR option is also specifiedthen \fB\-\-help\fR will also be passed on to the various processesinvoked by \fBgcc\fR, so that they can display the command line options
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -