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

📄 arm-linux-cpp.1

📁 arm-linux.rar
💻 1
📖 第 1 页 / 共 3 页
字号:
All files specified by \fB\-imacros\fR are processed before all filesspecified by \fB\-include\fR..IP "\fB\-idirafter\fR \fIdir\fR" 4.IX Item "-idirafter dir"Search \fIdir\fR for header files, but do it \fIafter\fR alldirectories specified with \fB\-I\fR and the standard system directorieshave been exhausted.  \fIdir\fR is treated as a system include directory..IP "\fB\-iprefix\fR \fIprefix\fR" 4.IX Item "-iprefix prefix"Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fRoptions.  If the prefix represents a directory, you should include thefinal \fB/\fR..IP "\fB\-iwithprefix\fR \fIdir\fR" 4.IX Item "-iwithprefix dir".PD 0.IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4.IX Item "-iwithprefixbefore dir".PDAppend \fIdir\fR to the prefix specified previously with\&\fB\-iprefix\fR, and add the resulting directory to the include searchpath.  \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fRwould; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would..IP "\fB\-isystem\fR \fIdir\fR" 4.IX Item "-isystem dir"Search \fIdir\fR for header files, after all directories specified by\&\fB\-I\fR but before the standard system directories.  Mark itas a system directory, so that it gets the same special treatment asis applied to the standard system directories..IP "\fB\-fdollars\-in\-identifiers\fR" 4.IX Item "-fdollars-in-identifiers"@anchor{fdollars\-in\-identifiers}Accept \fB$\fR in identifiers..IP "\fB\-fpreprocessed\fR" 4.IX Item "-fpreprocessed"Indicate to the preprocessor that the input file has already beenpreprocessed.  This suppresses things like macro expansion, trigraphconversion, escaped newline splicing, and processing of most directives.The preprocessor still recognizes and removes comments, so that you canpass a file preprocessed with \fB\-C\fR to the compiler withoutproblems.  In this mode the integrated preprocessor is little more thana tokenizer for the front ends..Sp\&\fB\-fpreprocessed\fR is implicit if the input file has one of theextensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR.  These are theextensions that \s-1GCC\s0 uses for preprocessed files created by\&\fB\-save\-temps\fR..IP "\fB\-ftabstop=\fR\fIwidth\fR" 4.IX Item "-ftabstop=width"Set the distance between tab stops.  This helps the preprocessor reportcorrect column numbers in warnings or errors, even if tabs appear on theline.  If the value is less than 1 or greater than 100, the option isignored.  The default is 8..IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4.IX Item "-fexec-charset=charset"Set the execution character set, used for string and characterconstants.  The default is \s-1UTF\-8\s0.  \fIcharset\fR can be any encodingsupported by the system's \f(CW\*(C`iconv\*(C'\fR library routine..IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4.IX Item "-fwide-exec-charset=charset"Set the wide execution character set, used for wide string andcharacter constants.  The default is \s-1UTF\-32\s0 or \s-1UTF\-16\s0, whichevercorresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR.  As with\&\fB\-ftarget\-charset\fR, \fIcharset\fR can be any encoding supportedby the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will haveproblems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR..IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4.IX Item "-finput-charset=charset"Set the input character set, used for translation from the characterset of the input file to the source character set used by \s-1GCC\s0. If thelocale does not specify, or \s-1GCC\s0 cannot get this information from thelocale, the default is \s-1UTF\-8\s0. This can be overridden by either the localeor this command line option. Currently the command line option takesprecedence if there's a conflict. \fIcharset\fR can be any encodingsupported by the system's \f(CW\*(C`iconv\*(C'\fR library routine..IP "\fB\-fworking\-directory\fR" 4.IX Item "-fworking-directory"Enable generation of linemarkers in the preprocessor output that willlet the compiler know the current working directory at the time ofpreprocessing.  When this option is enabled, the preprocessor willemit, after the initial linemarker, a second linemarker with thecurrent working directory followed by two slashes.  \s-1GCC\s0 will use thisdirectory, when it's present in the preprocessed input, as thedirectory emitted as the current working directory in some debugginginformation formats.  This option is implicitly enabled if debugginginformation is enabled, but this can be inhibited with the negatedform \fB\-fno\-working\-directory\fR.  If the \fB\-P\fR flag ispresent in the command line, this option has no effect, since no\&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever..IP "\fB\-fno\-show\-column\fR" 4.IX Item "-fno-show-column"Do not print column numbers in diagnostics.  This may be necessary ifdiagnostics are being scanned by a program that does not understand thecolumn numbers, such as \fBdejagnu\fR..IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4.IX Item "-A predicate=answer"Make an assertion with the predicate \fIpredicate\fR and answer\&\fIanswer\fR.  This form is preferred to the older form \fB\-A\fR\&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, becauseit does not use shell special characters..IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4.IX Item "-A -predicate=answer"Cancel an assertion with the predicate \fIpredicate\fR and answer\&\fIanswer\fR..IP "\fB\-dCHARS\fR" 4.IX Item "-dCHARS"\&\fI\s-1CHARS\s0\fR is a sequence of one or more of the following characters,and must not be preceded by a space.  Other characters are interpretedby the compiler proper, or reserved for future versions of \s-1GCC\s0, and soare silently ignored.  If you specify characters whose behaviorconflicts, the result is undefined..RS 4.IP "\fBM\fR" 4.IX Item "M"Instead of the normal output, generate a list of \fB#define\fRdirectives for all the macros defined during the execution of thepreprocessor, including predefined macros.  This gives you a way offinding out what is predefined in your version of the preprocessor.Assuming you have no file \fIfoo.h\fR, the command.Sp.Vb 1\&        touch foo.h; cpp -dM foo.h.Ve.Spwill show all the predefined macros..IP "\fBD\fR" 4.IX Item "D"Like \fBM\fR except in two respects: it does \fInot\fR include thepredefined macros, and it outputs \fIboth\fR the \fB#define\fRdirectives and the result of preprocessing.  Both kinds of output go tothe standard output file..IP "\fBN\fR" 4.IX Item "N"Like \fBD\fR, but emit only the macro names, not their expansions..IP "\fBI\fR" 4.IX Item "I"Output \fB#include\fR directives in addition to the result ofpreprocessing..RE.RS 4.RE.IP "\fB\-P\fR" 4.IX Item "-P"Inhibit generation of linemarkers in the output from the preprocessor.This might be useful when running the preprocessor on something that isnot C code, and will be sent to a program which might be confused by thelinemarkers..IP "\fB\-C\fR" 4.IX Item "-C"Do not discard comments.  All comments are passed through to the outputfile, except for comments in processed directives, which are deletedalong with the directive..SpYou should be prepared for side effects when using \fB\-C\fR; itcauses the preprocessor to treat comments as tokens in their own right.For example, comments appearing at the start of what would be adirective line have the effect of turning that line into an ordinarysource line, since the first token on the line is no longer a \fB#\fR..IP "\fB\-CC\fR" 4.IX Item "-CC"Do not discard comments, including during macro expansion.  This islike \fB\-C\fR, except that comments contained within macros arealso passed through to the output file where the macro is expanded..SpIn addition to the side-effects of the \fB\-C\fR option, the\&\fB\-CC\fR option causes all \*(C+\-style comments inside a macroto be converted to C\-style comments.  This is to prevent later useof that macro from inadvertently commenting out the remainder ofthe source line..SpThe \fB\-CC\fR option is generally used to support lint comments..IP "\fB\-traditional\-cpp\fR" 4.IX Item "-traditional-cpp"Try to imitate the behavior of old-fashioned C preprocessors, asopposed to \s-1ISO\s0 C preprocessors..IP "\fB\-trigraphs\fR" 4.IX Item "-trigraphs"Process trigraph sequences..IP "\fB\-remap\fR" 4.IX Item "-remap"Enable special code to work around file systems which only permit veryshort file names, such as \s-1MS\-DOS\s0..IP "\fB\-\-help\fR" 4.IX Item "--help".PD 0.IP "\fB\-\-target\-help\fR" 4.IX Item "--target-help".PDPrint text describing all the command line options instead ofpreprocessing anything..IP "\fB\-v\fR" 4.IX Item "-v"Verbose mode.  Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning ofexecution, and report the final form of the include path..IP "\fB\-H\fR" 4.IX Item "-H"Print the name of each header file used, in addition to other normalactivities.  Each name is indented to show how deep in the\&\fB#include\fR stack it is.  Precompiled header files are alsoprinted, even if they are found to be invalid; an invalid precompiledheader file is printed with \fB...x\fR and a valid one with \fB...!\fR ..IP "\fB\-version\fR" 4.IX Item "-version".PD 0.IP "\fB\-\-version\fR" 4.IX Item "--version".PDPrint out \s-1GNU\s0 \s-1CPP\s0's version number.  With one dash, proceed topreprocess as normal.  With two dashes, exit immediately..SH "ENVIRONMENT".IX Header "ENVIRONMENT"This section describes the environment variables that affect how \s-1CPP\s0operates.  You can use them to specify directories or prefixes to usewhen searching for include files, or to control dependency output..PPNote that you can also specify places to search using options such as\&\fB\-I\fR, and control dependency output with options like\&\fB\-M\fR.  These take precedence overenvironment variables, which in turn take precedence over theconfiguration of \s-1GCC\s0..IP "\fB\s-1CPATH\s0\fR" 4.IX Item "CPATH".PD 0.IP "\fBC_INCLUDE_PATH\fR" 4.IX Item "C_INCLUDE_PATH".IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4.IX Item "CPLUS_INCLUDE_PATH".IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4.IX Item "OBJC_INCLUDE_PATH".PDEach variable's value is a list of directories separated by a specialcharacter, much like \fB\s-1PATH\s0\fR, in which to look for header files.The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent anddetermined at \s-1GCC\s0 build time.  For Microsoft Windows-based targets it is asemicolon, and for almost all other targets it is a colon..Sp\&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as ifspecified with \fB\-I\fR, but after any paths given with \fB\-I\fRoptions on the command line.  This environment variable is usedregardless of which language is being preprocessed..SpThe remaining environment variables apply only when preprocessing theparticular language indicated.  Each specifies a list of directoriesto be searched as if specified with \fB\-isystem\fR, but after anypaths given with \fB\-isystem\fR options on the command line..SpIn all these variables, an empty element instructs the compiler tosearch its current working directory.  Empty elements can appear at thebeginning or end of a path.  For instance, if the value of\&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the sameeffect as \fB\-I.\ \-I/special/include\fR..IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4.IX Item "DEPENDENCIES_OUTPUT"If this variable is set, its value specifies how to outputdependencies for Make based on the non-system header files processedby the compiler.  System header files are ignored in the dependencyoutput..SpThe value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, inwhich case the Make rules are written to that file, guessing the targetname from the source file name.  Or the value can have the form\&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written tofile \fIfile\fR using \fItarget\fR as the target name..SpIn other words, this environment variable is equivalent to combiningthe options \fB\-MM\fR and \fB\-MF\fR,with an optional \fB\-MT\fR switch too..IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4.IX Item "SUNPRO_DEPENDENCIES"This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),except that system header files are not ignored, so it implies\&\fB\-M\fR rather than \fB\-MM\fR.  However, the dependence on themain input file is omitted..SH "SEE ALSO".IX Header "SEE ALSO"\&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),\&\fIgcc\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), and the Info entries for \fIcpp\fR, \fIgcc\fR, and\&\fIbinutils\fR..SH "COPYRIGHT".IX Header "COPYRIGHT"Copyright (c) 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996,1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004Free Software Foundation, Inc..PPPermission is granted to copy, distribute and/or modify this documentunder the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1 orany later version published by the Free Software Foundation.  A copy ofthe license is included in theman page \fIgfdl\fR\|(7).This manual contains no Invariant Sections.  The Front-Cover Texts are(a) (see below), and the Back-Cover Texts are (b) (see below)..PP(a) The \s-1FSF\s0's Front-Cover Text is:.PP.Vb 1\&     A GNU Manual.Ve.PP(b) The \s-1FSF\s0's Back-Cover Text is:.PP.Vb 3\&     You have freedom to copy and modify this GNU Manual, like GNU\&     software.  Copies published by the Free Software Foundation raise\&     funds for GNU development..Ve

⌨️ 快捷键说明

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