Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
Usage: GCC.EXE [options] file...Options:--help Display this information-dumpspecs Display all of the built in spec strings-dumpversion Display the version of the compiler-dumpmachine Display the compiler's target processor-print-search-dirs Display the directories in the compiler's search path-print-libgcc-file-name Display the name of the compiler's companion library-print-file-name=<lib> Display the full path to library <lib>-print-prog-name=<prog> Display the full path to compiler component <prog>-print-multi-directory Display the root directory for versions of libgcc-print-multi-lib Display the mapping between command line options andmultiple library search directories-Wa,<options> Pass comma-separated <options> on to the assembler-Wp,<options> Pass comma-separated <options> on to the preprocessor-Wl,<options> Pass comma-separated <options> on to the linker-Xlinker <arg> Pass <arg> on to the linker-save-temps Do not delete intermediate files-pipe Use pipes rather than intermediate files-specs=<file> Override builtin specs with the contents of <file>-std=<standard> Assume that the input sources are for <standard>-B <directory> Add <directory> to the compiler's search paths-b <machine> Run gcc for target <machine>, if installed-V <version> Run gcc version number <version>, if installed-v Display the programs invoked by the compiler-E Preprocess only; do not compile, assemble or link-S Compile only; do not assemble or link-c Compile and assemble, but do not link-o <file> Place the output into <file>-x <language> Specify the language of the following input filesPermissable languages include: c c++ assembler none'none' means revert to the default behaviour ofguessing the language based on the file's extensionOptions starting with -g, -f, -m, -O or -W are automatically passed on tothe various sub-processes invoked by GCC.EXE. In order to pass other optionson to these processes the -W<letter> options must be used.Usage: cpp [switches] input outputSwitches:-include <file> Include the contents of <file> before other files-imacros <file> Accept definition of marcos in <file>-iprefix <path> Specify <path> as a prefix for next two options-iwithprefix <dir> Add <dir> to the end of the system include paths-iwithprefixbefore <dir> Add <dir> to the end of the main include paths-isystem <dir> Add <dir> to the start of the system include paths-idirafter <dir> Add <dir> to the end of the system include paths-I <dir> Add <dir> to the end of the main include paths-nostdinc Do not search the system include directories-nostdinc++ Do not search the system include directories for C++-o <file> Put output into <file>-pedantic Issue all warnings demanded by strict ANSI C-traditional Follow K&R pre-processor behaviour-trigraphs Support ANSI C trigraphs-lang-c Assume that the input sources are in C-lang-c89 Assume that the input is C89; depricated-lang-c++ Assume that the input sources are in C++-lang-objc Assume that the input sources are in ObjectiveC-lang-objc++ Assume that the input sources are in ObjectiveC++-lang-asm Assume that the input sources are in assembler-lang-chill Assume that the input sources are in Chill-std=<std name> Specify the conformance standard; one of:gnu89, gnu9x, c89, c9x, iso9899:1990,iso9899:199409, iso9899:199x-+ Allow parsing of C++ style features-w Inhibit warning messages-Wtrigraphs Warn if trigraphs are encountered-Wno-trigraphs Do not warn about trigraphs-Wcomment{s} Warn if one comment starts inside another-Wno-comment{s} Do not warn about comments-Wtraditional Warn if a macro argument is/would be turned intoa string if -traditional is specified-Wno-traditional Do not warn about stringification-Wundef Warn if an undefined macro is used by #if-Wno-undef Do not warn about testing undefined macros-Wimport Warn about the use of the #import directive-Wno-import Do not warn about the use of #import-Werror Treat all warnings as errors-Wno-error Do not treat warnings as errors-Wall Enable all preprocessor warnings-M Generate make dependencies-MM As -M, but ignore system header files-MD As -M, but put output in a .d file-MMD As -MD, but ignore system header files-MG Treat missing header file as generated files-g Include #define and #undef directives in the output-D<macro> Define a <macro> with string '1' as its value-D<macro>=<val> Define a <macro> with <val> as its value-A<question> (<answer>) Assert the <answer> to <question>-U<macro> Undefine <macro>-u or -undef Do not predefine any macros-v Display the version number-H Print the name of header files as they are used-C Do not discard comments-dM Display a list of macro definitions active at end-dD Preserve macro definitions in output-dN As -dD except that only the names are preserved-dI Include #include directives in the output-ifoutput Describe skipped code blocks in output-P Do not generate #line directives-$ Do not include '$' in identifiers-remap Remap file names when including files.-h or --help Display this informationUsage: cc1 input [switches]Switches:-ffixed-<register> Mark <register> as being unavailable to the compiler-fcall-used-<register> Mark <register> as being corrupted by function calls-fcall-saved-<register> Mark <register> as being preserved across functions-finline-limit-<number> Limits the size of inlined functions to <number>-fident Process #ident directives-fleading-underscore External symbols have a leading underscore-finstrument-functions Instrument function entry/exit with profiling calls-fdump-unnumbered Suppress output of instruction numbers and line number notes in debugging dumps-fprefix-function-name Add a prefix to all function names-fcheck-memory-usage Generate code to check every memory access-fstrict-aliasing Assume strict aliasing rules apply-fargument-noalias-global Assume arguments do not alias each other or globals-fargument-noalias Assume arguments may alias globals but not each other-fargument-alias Specify that arguments may alias each other & globals-fstack-check Insert stack checking code into the program-fpack-struct Pack structure members together without holes-foptimize-register-move Do the full regmove optimization pass-fregmove Enables a register move optimisation-fgnu-linker Output GNU ld formatted global initialisers-fverbose-asm Add extra commentry to assembler output-fdata-sections place data items into their own section-ffunction-sections place each function into its own section-finhibit-size-directive Do not generate .size directives-fcommon Do not put unitialised globals in the common section-ffast-math Improve FP speed by violating ANSI & IEEE rules-fbranch-probabilities Use profiling information for branch probabilities-ftest-coverage Create data files needed by gcov-fprofile-arcs Insert arc based program profiling code-fasynchronous-exceptions Support asynchronous exceptions-fsjlj-exceptions Use setjmp/longjmp to handle exceptions-fnew-exceptions Use the new model for exception handling-fexceptions Enable exception handling-fpic Generate position independent code, if possible-fbranch-count-reg Replace add,compare,branch with branch on count reg-fschedule-insns2 Run two passes of the instruction scheduler-fschedule-insns Reschedule instructions to avoid pipeline stalls-fpretend-float Pretend that host and target use the same FP format-frerun-loop-opt Run the loop optimiser twice-frerun-cse-after-loop Run CSE pass after loop optimisations-fgcse Perform the global common subexpression elimination-fdelayed-branch Attempt to fill delay slots of branch instructions-freg-struct-return Return 'short' aggregates in registers-fpcc-struct-return Return 'short' aggregates in memory, not registers-fcaller-saves Enable saving registers around function calls-fshared-data Mark data as shared rather than private-fsyntax-only Check for syntax errors, then stop-fkeep-static-consts Emit static const variables even if they are not used-finline Pay attention to the 'inline' keyword-fkeep-inline-functions Generate code for funcs even if they are fully inlined-finline-functions Integrate simple functions into their callers-ffunction-cse Allow function addresses to be held in registers-fforce-addr Copy memory address constants into regs before using-fforce-mem Copy memory operands into registers before using-fpeephole Enable machine specific peephole optimisations-fwritable-strings Store strings in writable data section-freduce-all-givs Strength reduce all loop general induction variables-fmove-all-movables Force all loop invariant computations out of loops-funroll-all-loops Perform loop unrolling for all loops-funroll-loops Perform loop unrolling when iteration count is known-fstrength-reduce Perform strength reduction optimisations-fthread-jumps Perform jump threading optimisations-fexpensive-optimizations Perform a number of minor, expensive optimisations-fcse-skip-blocks When running CSE, follow conditional jumps-fcse-follow-jumps When running CSE, follow jumps to their targets-fomit-frame-pointer When possible do not generate stack frames-fdefer-pop Defer popping functions args from stack until later-fvolatile-static Consider all mem refs to static data to be volatile-fvolatile-global Consider all mem refs to global data to be volatile-fvolatile Consider all mem refs through pointers as volatile-ffloat-store Do not store floats in registers-O[number] Set optimisation level to [number]-Os Optimise for space rather than speed-pedantic Issue warnings needed by strict compliance to ANSI C-pedantic-errors Like -pedantic except that errors are produced-w Suppress warnings-W Enable extra warnings-Winline Warn when an inlined function cannot be inlined-Wuninitialized Warn about unitialized automatic variables-Wcast-align Warn about pointer casts which increase alignment-Waggregate-return Warn about returning structures, unions or arrays-Wswitch Warn about enumerated switches missing a specific case-Wshadow Warn when one local variable shadows another-Wunused Warn when a variable is unused-Wid-clash-<num> Warn if 2 identifiers have the same first <num> chars-Wlarger-than-<number> Warn if an object is larger than <number> bytes-p Enable function profiling-a Enable block profiling-ax Enable jump profiling-o <file> Place output into <file>-G <number> Put global and static data smaller than <number>bytes into a special section (on some targets)-gcoff Generate COFF format debug output-gstabs+ Generate extended STABS format debug output-gstabs Generate STABS format debug output-ggdb Generate default extended debug format output-g Generate default debug format output-aux-info <file> Emit declaration info into <file>.X-quiet Do not display functions compiled or elapsed time-version Display the compiler's version-d[letters] Enable dumps from specific passes of the compiler-dumpbase <file> Base name to be used for dumps from specific passes--help Display this informationLanguage specific options:-ansi Compile just for ANSI C-fallow-single-precisio Do not promote floats to double if using -traditional-std= Determine language standard-funsigned-bitfields Make bitfields by unsigned by default-fsigned-char Make 'char' be signed by default-funsigned-char Make 'char' be unsigned by default-traditional Attempt to support traditional K&R style C-fno-asm Do not recognise the 'asm' keyword-fno-builtin Do not recognise any built in functions-fhosted Assume normal C execution environment-ffreestanding Assume that standard libraries & main might not exist-fcond-mismatch Allow different types as args of ? operator-fdollars-in-identifier Allow the use of $ inside identifiers-fshort-double Use the same size for double as for float-fshort-enums Use the smallest fitting integer to hold enums-Wall Enable most warning messages-Wbad-function-cast Warn about casting functions to incompatible types-Wmissing-noreturn Warn about functions which might be candidates for attribute noreturn-Wcast-qual Warn about casts which discard qualifiers-Wchar-subscripts Warn about subscripts whose type is 'char'-Wcomment Warn if nested comments are detected-Wcomments Warn if nested comments are detected-Wconversion Warn about possibly confusing type conversions-Wformat Warn about printf format anomalies-Wimplicit-function-dec Warn about implicit function declarations-Wimplicit-int Warn when a declaration does not specify a type-Wimport Warn about the use of the #import directive-Wno-long-long Do not warn about using 'long long' when -pedantic-Wmain Warn about suspicious declarations of main-Wmissing-braces Warn about possibly missing braces around initialisers-Wmissing-declarations Warn about global funcs without previous declarations-Wmissing-prototypes Warn about global funcs without prototypes-Wmultichar Warn about use of multicharacter literals-Wnested-externs Warn about externs not at file scope level-Wparentheses Warn about possible missing parentheses-Wpointer-arith Warn about function pointer arithmetic-Wredundant-decls Warn about multiple declarations of the same object-Wsign-compare Warn about signed/unsigned comparisons-Wunknown-pragmas Warn about unrecognised pragmas-Wstrict-prototypes Warn about non-prototyped function decls-Wtraditional Warn about constructs whose meaning change in ANSI C-Wtrigraphs Warn when trigraphs are encountered-Wwrite-strings Mark strings as 'const char *'Options for Objective C:-gen-decls Dump decls to a .decl file-fgnu-runtime Generate code for GNU runtime environment-fnext-runtime Generate code for NeXT runtime environment-Wselector Warn if a selector has multiple methods-Wno-protocol Do not warn if inherited methods are unimplemented-print-objc-runtime-inf Generate C header of platform specific featuresOptions for C++:-fno-access-control Do not obey access control semantics-fall-virtual Make all member functions virtual-falt-external-template Change when template instances are emitted-fcheck-new Check the return value of new-fconserve-space Reduce size of object files-fno-const-strings Make string literals `char[]' instead of `const char[]'-fno-default-inline Do not inline member functions by default-fno-rtti Do not generate run time type descriptor information-fno-for-scope Scope of for-init-statement vars extends outside-fguiding-decls Implement guiding declarations-fno-gnu-keywords Do not recognise GNU defined keywords-fhandle-signatures Handle signature language constructs-fhonor-std Treat the namespace `std' as a normal namespace-fhuge-objects Enable support for huge objects-fno-implement-inlines Export functions even if they can be inlined-fno-implicit-templates Only emit explicit template instatiations-fno-implicit-inline-te Only emit explicit instatiations of inline templates-finit-priority Handle the init_priority attribute-flabels-ok Labels can be used as first class objects-fnew-abi Enable experimental ABI changes-fno-nonnull-objects Do not assume that a reference is always valid-foperator-names Recognise and/bitand/bitor/compl/not/or/xor-fno-optional-diags Disable optional diagnostics-fpermissive Downgrade conformance errors to warnings-frepo Enable automatic template instantiation-fsquangle Enable squashed name mangling-fstats Display statistics accumulated during compilation-fno-strict-prototype Do not assume that empty prototype means no args-ftemplate-depth- Specify maximum template instantiation depth-fthis-is-variable Make 'this' not be type '* const'-fvtable-gc Discard unused virtual functions-fvtable-thunks Implement vtables using thunks-fweak Emit common-like symbols as weak symbols-fxref Emit cross referencing information-Wreturn-type Warn about inconsistent return types-Woverloaded-virtual Warn about overloaded virtual function names-Wno-ctor-dtor-privacy Don't warn when all ctors/dtors are private-Wnon-virtual-dtor Warn about non virtual destructors-Wextern-inline Warn when a function is declared extern, then inline-Wreorder Warn when the compiler reorders code-Wsynth Warn when synthesis behaviour differs from Cfront-Wno-pmf-conversions Don't warn when type converting pointers to member functions-Weffc++ Warn about violations of Effective C++ style rules-Wsign-promo Warn when overload promotes from unsigned to signed-Wold-style-cast Warn if a C style cast is used in a program-Wno-non-template-frien Don't warn when non-templatized friend functions are declared within a template-Wno-deprecated Don't announce deprecation of compiler featuresTarget specific options:-malign-300 Use H8/300 alignment rules-mno-h Do not generate H8/300H code-mh Generate H8/300H code-mrelax Enable linker relaxing-mslowbyte Consider access to byte sized memory slow-mno-quickcall Do not use registers for argument passing-mquickcall Use registers for argument passing-mint32 Make integers 32 bits wide-mno-s Do not generate H8/S code-ms Generate H8/S codeThere are undocumented target specific options as well.Usage: as [option...] [asmfile...]Options:-a[sub-option...] turn on listingsSub-options [default hls]:c omit false conditionalsd omit debugging directivesh include high-level sourcel include assemblym include macro expansionsn omit forms processings include symbols=file set listing file name (must be last sub-option)-D produce assembler debugging messages--defsym SYM=VAL define symbol SYM to given value-f skip whitespace and comment preprocessing--gstabs generate stabs debugging information--help show this message and exit-I DIR add DIR to search list for .include directives-J don't warn about signed overflow-K warn when differences altered for long displacements-L,--keep-locals keep local symbols (e.g. starting with `L')-M,--mri assemble in MRI compatibility mode--MD FILE write dependency information in FILE (default none)-nocpp ignored-o OBJFILE name the object-file output OBJFILE (default a.out)-R fold data section into text section--statistics print various measured statistics from execution--strip-local-absolute strip local absolute symbols--traditional-format Use same format as native assembler when possible--version print assembler version number and exit-W suppress warnings--itbl INSTTBL extend instruction set to include instructionsmatching the specifications defined in file INSTTBL-w ignored-X ignored-Z generate object file even after errors--listing-lhs-width set the width in words of the output data column ofthe listing--listing-lhs-width2 set the width in words of the continuation linesof the output data column; ignored if smaller thanthe width of the first line--listing-rhs-width set the max width in characters of the lines fromthe source file--listing-cont-lines set the maximum number of continuation lines usedfor the output data column of the listingReport bugs to bug-gnu-utils@gnu.orgUsage: ld [options] file...Options:-a KEYWORD Shared library control for HP/UX compatibility-A ARCH, --architecture ARCHSet architecture-b TARGET, --format TARGET Specify target for following input files-c FILE, --mri-script FILE Read MRI format linker script-d, -dc, -dp Force common symbols to be defined-e ADDRESS, --entry ADDRESS Set start address-E, --export-dynamic Export all dynamic symbols-f SHLIB, --auxiliary SHLIB Auxiliary filter for shared object symbol table-F SHLIB, --filter SHLIB Filter for shared object symbol table-g Ignored-G SIZE, --gpsize SIZE Small data size (if no size, same as --shared)-h FILENAME, -soname FILENAMESet internal name of shared library-l LIBNAME, --library LIBNAMESearch for library LIBNAME-L DIRECTORY, --library-path DIRECTORYAdd DIRECTORY to library search path-m EMULATION Set emulation-M, --print-map Print map file on standard output-n, --nmagic Do not page align data-N, --omagic Do not page align data, do not make text readonly-o FILE, --output FILE Set output file name-O Ignored-r, -i, --relocateable Generate relocateable output-R FILE, --just-symbols FILEJust link symbols (if directory, same as --rpath)-s, --strip-all Strip all symbols-S, --strip-debug Strip debugging symbols-t, --trace Trace file opens-T FILE, --script FILE Read linker script-u SYMBOL, --undefined SYMBOLStart with undefined reference to SYMBOL-v, --version Print version information-V Print version and emulation information-x, --discard-all Discard all local symbols-X, --discard-locals Discard temporary local symbols-y SYMBOL, --trace-symbol SYMBOLTrace mentions of SYMBOL-Y PATH Default search path for Solaris compatibility-z KEYWORD Ignored for Solaris compatibility-(, --start-group Start a group-), --end-group End a group-assert KEYWORD Ignored for SunOS compatibility-Bdynamic, -dy, -call_sharedLink against shared libraries-Bstatic, -dn, -non_shared, -staticDo not link against shared libraries-Bsymbolic Bind global references locally--cref Output cross reference table--defsym SYMBOL=EXPRESSION Define a symbol--dynamic-linker PROGRAM Set the dynamic linker to use-EB Link big-endian objects-EL Link little-endian objects--embedded-relocs Generate embedded relocs--force-exe-suffix Force generation of file with .exe suffix--help Print option help-Map FILE Write a map file--no-keep-memory Use less memory and more disk I/O--no-warn-mismatch Don't warn about mismatched input files--no-whole-archive Turn off --whole-archive--noinhibit-exec Create an output file even if errors occur--oformat TARGET Specify target of output file-qmagic Ignored for Linux compatibility-Qy Ignored for SVR4 compatibility--relax Relax branches on certain targets--retain-symbols-file FILE Keep only symbols listed in FILE-rpath PATH Set runtime shared library search path-rpath-link PATH Set link time shared library search path-shared, -Bshareable Create a shared library--sort-common Sort common symbols by size--split-by-file Split output sections for each file--split-by-reloc COUNT Split output sections every COUNT relocs--stats Print memory usage statistics--task-link SYMBOL Do task level linking--traditional-format Use same format as native linker-Tbss ADDRESS Set address of .bss section-Tdata ADDRESS Set address of .data section-Ttext ADDRESS Set address of .text section-Ur Build global constructor/destructor tables--verbose Output lots of information during link--version-script FILE Read version information script--warn-common Warn about duplicate common symbols--warn-constructors Warn if global constructors/destructors are seen--warn-multiple-gp Warn if the multiple GP values are used--warn-once Warn only once per undefined symbol--warn-section-align Warn if start of section changes due to alignment--whole-archive Include all objects from following archives--wrap SYMBOL Use wrapper functions for SYMBOLld: supported targets: coff-h8300 srec symbolsrec tekhex binary ihexld: supported emulations: h8300 h8300h h8300sReport bugs to bug-gnu-utils@gnu.orgFor bug reporting instructions, please see:<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>