📄 arm-linux-gcc.1
字号:
.I file\c\&\c\&\|' is tomake the macros defined in \c.I file\c\& available for use in the maininput. The preprocessor evaluates any `\|\c.B \-D\c\&\|' and `\|\c.B \-U\c\&\|' optionson the command line before processing `\|\c.B \-imacros\c.I file\c\&\|', regardless of the order inwhich they are written. All the `\|\c.B \-include\c\&\|' and `\|\c.B \-imacros\c\&\|'options are processed in the order in which they are written..TP.BI "\-idirafter " "dir"Add the directory \c.I dir\c\& to the second include path. The directorieson the second include path are searched when a header file is not foundin any of the directories in the main include path (the one that`\|\c.B \-I\c\&\|' adds to)..TP.BI "\-iprefix " "prefix"Specify \c.I prefix\c\& as the prefix for subsequent `\|\c.B \-iwithprefix\c\&\|'options..TP.BI "\-iwithprefix " "dir"Add a directory to the second include path. The directory's name ismade by concatenating \c.I prefix\c\& and \c.I dir\c\&, where \c.I prefixwas specified previously with `\|\c.B \-iprefix\c\&\|'..TP.B \-nostdincDo not search the standard system directories for header files. Onlythe directories you have specified with `\|\c.B \-I\c\&\|' options (and thecurrent directory, if appropriate) are searched..SpBy using both `\|\c.B \-nostdinc\c\&\|' and `\|\c.B \-I\-\c\&\|', you can limit the include-file search file to only thosedirectories you specify explicitly..TP.B \-nostdinc++Do not search for header files in the C++\-specific standard directories,but do still search the other standard directories.(This option is used when building `\|\c.B libg++\c\&\|'.).TP.B \-undefDo not predefine any nonstandard macros. (Including architecture flags)..TP.B \-ERun only the C preprocessor. Preprocess all the C source filesspecified and output the results to standard output or to thespecified output file..TP.B \-CTell the preprocessor not to discard comments. Used with the`\|\c.B \-E\c\&\|' option..TP.B \-PTell the preprocessor not to generate `\|\c.B #line\c\&\|' commands.Used with the `\|\c.B \-E\c\&\|' option..TP.B \-M\ [ \-MG ]Tell the preprocessor to output a rule suitable for \c.B makedescribing the dependencies of each object file. For each source file,the preprocessor outputs one \c.B make\c\&-rule whose target is the objectfile name for that source file and whose dependencies are all the files`\|\c.B #include\c\&\|'d in it. This rule may be a single line or may becontinued with `\|\c.B \e\c\&\|'-newline if it is long. The list of rules isprinted on standard output instead of the preprocessed C program..Sp`\|\c.B \-M\c\&\|' implies `\|\c.B \-E\c\&\|'..Sp`\|\c.B \-MG\c\&\|' says to treat missing header files as generated files and assume \cthey live in the same directory as the source file. It must be specified \cin addition to `\|\c.B \-M\c\&\|'..TP.B \-MM\ [ \-MG ]Like `\|\c.B \-M\c\&\|' but the output mentions only the user header filesincluded with `\|\c.B #include "\c.I file\c\&"\c\&\|'. System header filesincluded with `\|\c.B #include <\c.I file\c\&>\c\&\|' are omitted..TP.B \-MDLike `\|\c.B \-M\c\&\|' but the dependency information is written to files withnames made by replacing `\|\c.B .o\c\&\|' with `\|\c.B .d\c\&\|' at the end of theoutput file names. This is in addition to compiling the file asspecified\(em\&`\|\c.B \-MD\c\&\|' does not inhibit ordinary compilation the way`\|\c.B \-M\c\&\|' does..SpThe Mach utility `\|\c.B md\c\&\|' can be used to merge the `\|\c.B .d\c\&\|' filesinto a single dependency file suitable for using with the `\|\c.B make\c\&\|'command..TP.B \-MMDLike `\|\c.B \-MD\c\&\|' except mention only user header files, not systemheader files..TP.B \-HPrint the name of each header file used, in addition to other normalactivities..TP.BI "\-A" "question" ( answer )Assert the answer.I answerfor.I question\c\&, in case it is testedwith a preprocessor conditional such as `\|\c.BI "#if #" question ( answer )\c\&\|'. `\|\c.B \-A\-\c\&\|' disables the standardassertions that normally describe the target machine..TP.BI "\-A" "question"\c\&(\c.I answer\c\&)Assert the answer \c.I answer\c\& for \c.I question\c\&, in case it is testedwith a preprocessor conditional such as `\|\c.B #if#\c.I question\c\&(\c.I answer\c\&)\c\&\|'. `\|\c.B \-A-\c\&\|' disables the standardassertions that normally describe the target machine..TP.BI \-D macroDefine macro \c.I macro\c\& with the string `\|\c.B 1\c\&\|' as its definition..TP.BI \-D macro = defnDefine macro \c.I macro\c\& as \c.I defn\c\&. All instances of `\|\c.B \-D\c\&\|' onthe command line are processed before any `\|\c.B \-U\c\&\|' options..TP.BI \-U macroUndefine macro \c.I macro\c\&. `\|\c.B \-U\c\&\|' options are evaluated after all `\|\c.B \-D\c\&\|' options, but before any `\|\c.B \-include\c\&\|' and `\|\c.B \-imacros\c\&\|' options..TP.B \-dMTell the preprocessor to output only a list of the macro definitionsthat are in effect at the end of preprocessing. Used with the `\|\c.B \-E\c\&\|'option..TP.B \-dDTell the preprocessor to pass all macro definitions into the output, intheir proper sequence in the rest of the output..TP.B \-dNLike `\|\c.B \-dD\c\&\|' except that the macro arguments and contents are omitted.Only `\|\c.B #define \c.I name\c\&\c\&\|' is included in the output..SH ASSEMBLER OPTION.TP.BI "\-Wa," "option"Pass \c.I option\c\& as an option to the assembler. If \c.I optioncontains commas, it is split into multiple options at the commas..SH LINKER OPTIONSThese options come into play when the compiler links object files intoan executable output file. They are meaningless if the compiler isnot doing a link step..TP.I object-file-nameA file name that does not end in a special recognized suffix isconsidered to name an object file or library. (Object files aredistinguished from libraries by the linker according to the filecontents.) If GCC does a link step, these object files are used as inputto the linker..TP.BI \-l libraryUse the library named \c.I library\c\& when linking..SpThe linker searches a standard list of directories for the library,which is actually a file named `\|\c.B lib\c.I library\c\&.a\c\&\|'. The linkerthen uses this file as if it had been specified precisely by name..SpThe directories searched include several standard system directoriesplus any that you specify with `\|\c.B \-L\c\&\|'..SpNormally the files found this way are library files\(em\&archive fileswhose members are object files. The linker handles an archive file byscanning through it for members which define symbols that have so farbeen referenced but not defined. However, if the linker finds anordinary object file rather than a library, the object file is linkedin the usual fashion. The only difference between using an `\|\c.B \-l\c\&\|' option and specifying a filename is that `\|\c.B \-l\c\&\|' surrounds.I librarywith `\|\c.B lib\c\&\|' and `\|\c.B .a\c\&\|' and searches several directories..TP.B \-lobjcYou need this special case of the.B \-loption in order to link an Objective C program..TP.B \-nostartfilesDo not use the standard system startup files when linking.The standard libraries are used normally..TP.B \-nostdlibDon't use the standard system libraries and startup files when linking.Only the files you specify will be passed to the linker..TP.B \-staticOn systems that support dynamic linking, this prevents linking with the sharedlibraries. On other systems, this option has no effect..TP.B \-sharedProduce a shared object which can then be linked with other objects toform an executable. Only a few systems support this option..TP.B \-symbolicBind references to global symbols when building a shared object. Warnabout any unresolved references (unless overridden by the link editoroption `\|\c.B\-Xlinker \-z \-Xlinker defs\c\&\|'). Only a few systems supportthis option..TP.BI "\-Xlinker " "option"Pass \c.I optionas an option to the linker. You can use this tosupply system-specific linker options which GNU CC does not know how torecognize..SpIf you want to pass an option that takes an argument, you must use`\|\c.B \-Xlinker\c\&\|' twice, once for the option and once for the argument.For example, to pass `\|\c.B\-assert definitions\c\&\|', you must write`\|\c.B\-Xlinker \-assert \-Xlinker definitions\c\&\|'. It does not work to write`\|\c.B\-Xlinker "\-assert definitions"\c\&\|', because this passes the entirestring as a single argument, which is not what the linker expects..TP.BI "\-Wl," "option"Pass \c.I option\c\& as an option to the linker. If \c.I option\c\& containscommas, it is split into multiple options at the commas..TP.BI "\-u " "symbol"Pretend the symbol.I symbolis undefined, to force linking oflibrary modules to define it. You can use `\|\c.B \-u\c\&\|' multiple times withdifferent symbols to force loading of additional library modules..SH DIRECTORY OPTIONSThese options specify directories to search for header files, forlibraries and for parts of the compiler:.TP.BI "\-I" "dir"Append directory \c.I dir\c\& to the list of directories searched for include files..TP.B \-I\-Any directories you specify with `\|\c.B \-I\c\&\|' options before the `\|\c.B \-I\-\c\&\|'option are searched only for the case of `\|\c.B#include "\c.I file\c.B\&"\c\&\|';they are not searched for `\|\c.B #include <\c.I file\c\&>\c\&\|'..SpIf additional directories are specified with `\|\c.B \-I\c\&\|' options afterthe `\|\c.B \-I\-\c\&\|', these directories are searched for all `\|\c.B #include\c\&\|'directives. (Ordinarily \c.I all\c\& `\|\c.B \-I\c\&\|' directories are usedthis way.).SpIn addition, the `\|\c.B \-I\-\c\&\|' option inhibits the use of the currentdirectory (where the current input file came from) as the first searchdirectory for `\|\c.B#include "\c.I file\c.B\&"\c\&\|'. There is no way tooverride this effect of `\|\c.B \-I\-\c\&\|'. With `\|\c.B \-I.\c\&\|' you can specifysearching the directory which was current when the compiler wasinvoked. That is not exactly the same as what the preprocessor doesby default, but it is often satisfactory..Sp`\|\c.B \-I\-\c\&\|' does not inhibit the use of the standard system directoriesfor header files. Thus, `\|\c.B \-I\-\c\&\|' and `\|\c.B \-nostdinc\c\&\|' areindependent..TP.BI "\-L" "dir"Add directory \c.I dir\c\& to the list of directories to be searchedfor `\|\c.B \-l\c\&\|'..TP.BI "\-B" "prefix"This option specifies where to find the executables, libraries anddata files of the compiler itself..SpThe compiler driver program runs one or more of the subprograms`\|\c.B cpp\c\&\|', `\|\c.B cc1\c\&\|' (or, for C++, `\|\c.B cc1plus\c\&\|'), `\|\c.B as\c\&\|' and `\|\c.B ld\c\&\|'. It tries.I prefix\c\& as a prefix for each program it tries to run, both with andwithout `\|\c.I machine\c.B /\c.I version\c.B /\c\&\|'..SpFor each subprogram to be run, the compiler driver first tries the`\|\c.B \-B\c\&\|' prefix, if any. If that name is not found, or if `\|\c.B \-B\c\&\|'was not specified, the driver tries two standard prefixes, which are`\|\c.B /usr/lib/gcc/\c\&\|' and `\|\c.B /usr/local/lib/gcc-lib/\c\&\|'. If neither ofthose results in a file name that is found, the compiler driversearches for the unmodified programname, using the directories specified in your`\|\c.B PATH\c\&\|' environment variable..SpThe run-time support file `\|\c.B libgcc.a\c\&\|' is also searched for using the`\|\c.B \-B\c\&\|' prefix, if needed. If it is not found there, the twostandard prefixes above are tried, and that is all. The file is leftout of the link if it is not found by those means. Most of the time,on most machines, `\|\c.B libgcc.a\c\&\|' is not actually necessary..SpYou can get a similar result from the environment variable.B GCC_EXEC_PREFIX\c\&; if it is defined, its value is used as a prefixin the same way. If both the `\|\c.B \-B\c\&\|' option and the.B GCC_EXEC_PREFIX\c\& variable are present, the `\|\c.B \-B\c\&\|' option is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -