📄 invoke.texi
字号:
-mmemcpy -mno-memcpy -mlong-calls -mno-long-calls @gol-mmad -mno-mad -mfused-madd -mno-fused-madd -nocpp @gol-mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400 @gol-mfix-vr4120 -mno-fix-vr4120 -mfix-vr4130 -mno-fix-vr4130 @gol-mfix-sb1 -mno-fix-sb1 @gol-mflush-func=@var{func} -mno-flush-func @gol-mbranch-cost=@var{num} -mbranch-likely -mno-branch-likely @gol-mfp-exceptions -mno-fp-exceptions @gol-mvr4130-align -mno-vr4130-align}@emph{MMIX Options}@gccoptlist{-mlibfuncs -mno-libfuncs -mepsilon -mno-epsilon -mabi=gnu @gol-mabi=mmixware -mzero-extend -mknuthdiv -mtoplevel-symbols @gol-melf -mbranch-predict -mno-branch-predict -mbase-addresses @gol-mno-base-addresses -msingle-exit -mno-single-exit}@emph{MN10300 Options}@gccoptlist{-mmult-bug -mno-mult-bug @gol-mam33 -mno-am33 @gol-mam33-2 -mno-am33-2 @gol-mreturn-pointer-on-d0 @gol-mno-crt0 -mrelax}@emph{MT Options}@gccoptlist{-mno-crt0 -mbacc -msim @gol-march=@var{cpu-type} }@emph{PDP-11 Options}@gccoptlist{-mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10 @gol-mbcopy -mbcopy-builtin -mint32 -mno-int16 @gol-mint16 -mno-int32 -mfloat32 -mno-float64 @gol-mfloat64 -mno-float32 -mabshi -mno-abshi @gol-mbranch-expensive -mbranch-cheap @gol-msplit -mno-split -munix-asm -mdec-asm}@emph{PowerPC Options}See RS/6000 and PowerPC Options.@emph{RS/6000 and PowerPC Options}@gccoptlist{-mcpu=@var{cpu-type} @gol-mtune=@var{cpu-type} @gol-mpower -mno-power -mpower2 -mno-power2 @gol-mpowerpc -mpowerpc64 -mno-powerpc @gol-maltivec -mno-altivec @gol-mpowerpc-gpopt -mno-powerpc-gpopt @gol-mpowerpc-gfxopt -mno-powerpc-gfxopt @gol-mmfcrf -mno-mfcrf -mpopcntb -mno-popcntb -mfprnd -mno-fprnd @gol-mcmpb -mno-cmpb -mmfpgpr -mno-mfpgpr -mhard-dfp -mno-hard-dfp @gol-mnew-mnemonics -mold-mnemonics @gol-mfull-toc -mminimal-toc -mno-fp-in-toc -mno-sum-in-toc @gol-m64 -m32 -mxl-compat -mno-xl-compat -mpe @gol-malign-power -malign-natural @gol-msoft-float -mhard-float -mmultiple -mno-multiple @gol-mstring -mno-string -mupdate -mno-update @gol-mfused-madd -mno-fused-madd -mbit-align -mno-bit-align @gol-mstrict-align -mno-strict-align -mrelocatable @gol-mno-relocatable -mrelocatable-lib -mno-relocatable-lib @gol-mtoc -mno-toc -mlittle -mlittle-endian -mbig -mbig-endian @gol-mdynamic-no-pic -maltivec -mswdiv @gol-mprioritize-restricted-insns=@var{priority} @gol-msched-costly-dep=@var{dependence_type} @gol-minsert-sched-nops=@var{scheme} @gol-mcall-sysv -mcall-netbsd @gol-maix-struct-return -msvr4-struct-return @gol-mabi=@var{abi-type} -msecure-plt -mbss-plt @gol-misel -mno-isel @gol-misel=yes -misel=no @gol-mspe -mno-spe @gol-mspe=yes -mspe=no @gol-mpaired @gol-mvrsave -mno-vrsave @gol-mmulhw -mno-mulhw @gol-mdlmzb -mno-dlmzb @gol-mfloat-gprs=yes -mfloat-gprs=no -mfloat-gprs=single -mfloat-gprs=double @gol-mprototype -mno-prototype @gol-msim -mmvme -mads -myellowknife -memb -msdata @gol-msdata=@var{opt} -mvxworks -mwindiss -G @var{num} -pthread}@emph{S/390 and zSeries Options}@gccoptlist{-mtune=@var{cpu-type} -march=@var{cpu-type} @gol-mhard-float -msoft-float -mlong-double-64 -mlong-double-128 @gol-mbackchain -mno-backchain -mpacked-stack -mno-packed-stack @gol-msmall-exec -mno-small-exec -mmvcle -mno-mvcle @gol-m64 -m31 -mdebug -mno-debug -mesa -mzarch @gol-mtpf-trace -mno-tpf-trace -mfused-madd -mno-fused-madd @gol-mwarn-framesize -mwarn-dynamicstack -mstack-size -mstack-guard}@emph{Score Options}@gccoptlist{-meb -mel @gol-mnhwloop @gol-muls @gol-mmac @gol-mscore5 -mscore5u -mscore7 -mscore7d}@emph{SH Options}@gccoptlist{-m1 -m2 -m2e -m3 -m3e @gol-m4-nofpu -m4-single-only -m4-single -m4 @gol-m4a-nofpu -m4a-single-only -m4a-single -m4a -m4al @gol-m5-64media -m5-64media-nofpu @gol-m5-32media -m5-32media-nofpu @gol-m5-compact -m5-compact-nofpu @gol-mb -ml -mdalign -mrelax @gol-mbigtable -mfmovd -mhitachi -mrenesas -mno-renesas -mnomacsave @gol-mieee -misize -minline-ic_invalidate -mpadstruct -mspace @gol-mprefergot -musermode -multcost=@var{number} -mdiv=@var{strategy} @gol-mdivsi3_libfunc=@var{name} @gol-madjust-unroll -mindexed-addressing -mgettrcost=@var{number} -mpt-fixed @gol -minvalid-symbols}@emph{SPARC Options}@gccoptlist{-mcpu=@var{cpu-type} @gol-mtune=@var{cpu-type} @gol-mcmodel=@var{code-model} @gol-m32 -m64 -mapp-regs -mno-app-regs @gol-mfaster-structs -mno-faster-structs @gol-mfpu -mno-fpu -mhard-float -msoft-float @gol-mhard-quad-float -msoft-quad-float @gol-mimpure-text -mno-impure-text -mlittle-endian @gol-mstack-bias -mno-stack-bias @gol-munaligned-doubles -mno-unaligned-doubles @gol-mv8plus -mno-v8plus -mvis -mno-vis-threads -pthreads -pthread}@emph{SPU Options}@gccoptlist{-mwarn-reloc -merror-reloc @gol-msafe-dma -munsafe-dma @gol-mbranch-hints @gol-msmall-mem -mlarge-mem -mstdmain @gol-mfixed-range=@var{register-range}}@emph{System V Options}@gccoptlist{-Qy -Qn -YP,@var{paths} -Ym,@var{dir}}@emph{V850 Options}@gccoptlist{-mlong-calls -mno-long-calls -mep -mno-ep @gol-mprolog-function -mno-prolog-function -mspace @gol-mtda=@var{n} -msda=@var{n} -mzda=@var{n} @gol-mapp-regs -mno-app-regs @gol-mdisable-callt -mno-disable-callt @gol-mv850e1 @gol-mv850e @gol-mv850 -mbig-switch}@emph{VAX Options}@gccoptlist{-mg -mgnu -munix}@emph{VxWorks Options}@gccoptlist{-mrtp -non-static -Bstatic -Bdynamic @gol-Xbind-lazy -Xbind-now}@emph{x86-64 Options}See i386 and x86-64 Options.@emph{Xstormy16 Options}@gccoptlist{-msim}@emph{Xtensa Options}@gccoptlist{-mconst16 -mno-const16 @gol-mfused-madd -mno-fused-madd @gol-mtext-section-literals -mno-text-section-literals @gol-mtarget-align -mno-target-align @gol-mlongcalls -mno-longcalls}@emph{zSeries Options}See S/390 and zSeries Options.@item Code Generation Options@xref{Code Gen Options,,Options for Code Generation Conventions}.@gccoptlist{-fcall-saved-@var{reg} -fcall-used-@var{reg} @gol-ffixed-@var{reg} -fexceptions @gol-fnon-call-exceptions -funwind-tables @gol-fasynchronous-unwind-tables @gol-finhibit-size-directive -finstrument-functions @gol-finstrument-functions-exclude-function-list=@var{sym},@var{sym},@dots{} @gol-finstrument-functions-exclude-file-list=@var{file},@var{file},@dots{} @gol-fno-common -fno-ident @gol-fpcc-struct-return -fpic -fPIC -fpie -fPIE @gol-fno-jump-tables @gol-frecord-gcc-switches @gol-freg-struct-return -fshort-enums @gol-fshort-double -fshort-wchar @gol-fverbose-asm -fpack-struct[=@var{n}] -fstack-check @gol-fstack-limit-register=@var{reg} -fstack-limit-symbol=@var{sym} @gol-fno-stack-limit -fargument-alias -fargument-noalias @gol-fargument-noalias-global -fargument-noalias-anything @gol-fleading-underscore -ftls-model=@var{model} @gol-ftrapv -fwrapv -fbounds-check @gol-fvisibility}@end table@menu* Overall Options:: Controlling the kind of output: an executable, object files, assembler files, or preprocessed source.* C Dialect Options:: Controlling the variant of C language compiled.* C++ Dialect Options:: Variations on C++.* Objective-C and Objective-C++ Dialect Options:: Variations on Objective-C and Objective-C++.* Language Independent Options:: Controlling how diagnostics should be formatted.* Warning Options:: How picky should the compiler be?* Debugging Options:: Symbol tables, measurements, and debugging dumps.* Optimize Options:: How much optimization?* Preprocessor Options:: Controlling header files and macro definitions. Also, getting dependency information for Make.* Assembler Options:: Passing options to the assembler.* Link Options:: Specifying libraries and so on.* Directory Options:: Where to find header files and libraries. Where to find the compiler executable files.* Spec Files:: How to pass switches to sub-processes.* Target Options:: Running a cross-compiler, or an old version of GCC.@end menu@node Overall Options@section Options Controlling the Kind of OutputCompilation can involve up to four stages: preprocessing, compilationproper, assembly and linking, always in that order. GCC 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.@cindex file name suffixFor any given input file, the file name suffix determines what kind ofcompilation is done:@table @gcctabopt@item @var{file}.cC source code which must be preprocessed.@item @var{file}.iC source code which should not be preprocessed.@item @var{file}.iiC++ source code which should not be preprocessed.@item @var{file}.mObjective-C source code. Note that you must link with the @file{libobjc}library to make an Objective-C program work.@item @var{file}.miObjective-C source code which should not be preprocessed.@item @var{file}.mm@itemx @var{file}.MObjective-C++ source code. Note that you must link with the @file{libobjc}library to make an Objective-C++ program work. Note that @samp{.M} refersto a literal capital M@.@item @var{file}.miiObjective-C++ source code which should not be preprocessed.@item @var{file}.hC, C++, Objective-C or Objective-C++ header file to be turned into aprecompiled header.@item @var{file}.cc@itemx @var{file}.cp@itemx @var{file}.cxx@itemx @var{file}.cpp@itemx @var{file}.CPP@itemx @var{file}.c++@itemx @var{file}.CC++ source code which must be preprocessed. Note that in @samp{.cxx},the last two letters must both be literally @samp{x}. Likewise,@samp{.C} refers to a literal capital C@.@item @var{file}.mm@itemx @var{file}.MObjective-C++ source code which must be preprocessed.@item @var{file}.miiObjective-C++ source code which should not be preprocessed.@item @var{file}.hh@itemx @var{file}.H@itemx @var{file}.hp@itemx @var{file}.hxx@itemx @var{file}.hpp@itemx @var{file}.HPP@itemx @var{file}.h++@itemx @var{file}.tccC++ header file to be turned into a precompiled header.@item @var{file}.f@itemx @var{file}.for@itemx @var{file}.FORFixed form Fortran source code which should not be preprocessed.@item @var{file}.F@itemx @var{file}.fpp@itemx @var{file}.FPPFixed form Fortran source code which must be preprocessed (with the traditionalpreprocessor).@item @var{file}.f90@itemx @var{file}.f95Free form Fortran source code which should not be preprocessed.@item @var{file}.F90@itemx @var{file}.F95Free form Fortran source code which must be preprocessed (with thetraditional preprocessor).@c FIXME: Descriptions of Java file types.@c @var{file}.java@c @var{file}.class@c @var{file}.zip@c @var{file}.jar@item @var{file}.adsAda 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 @dfn{specs}.@itemx @var{file}.adb
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -