📄 arm-linux-cpp.1
字号:
.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13.\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. | will give a.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'.\" expand to `' in nroff, nothing in troff, for use with C<>..tr \(*W-|\(bv\*(Tr.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..if \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.\".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..hy 0.if n .na.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "CPP 1".TH CPP 1 "2005-05-19" "gcc-3.4.4" "GNU".SH "NAME"cpp \- The C Preprocessor.SH "SYNOPSIS".IX Header "SYNOPSIS"cpp [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR] [\fB\-I\fR\fIdir\fR...] [\fB\-W\fR\fIwarn\fR...] [\fB\-M\fR|\fB\-MM\fR] [\fB\-MG\fR] [\fB\-MF\fR \fIfilename\fR] [\fB\-MP\fR] [\fB\-MQ\fR \fItarget\fR...] [\fB\-MT\fR \fItarget\fR...] [\fB\-P\fR] [\fB\-fno\-working\-directory\fR] [\fB\-x\fR \fIlanguage\fR] [\fB\-std=\fR\fIstandard\fR] \fIinfile\fR \fIoutfile\fR.PPOnly the most useful options are listed here; see below for the remainder..SH "DESCRIPTION".IX Header "DESCRIPTION"The C preprocessor, often known as \fIcpp\fR, is a \fImacro processor\fRthat is used automatically by the C compiler to transform your programbefore compilation. It is called a macro processor because it allowsyou to define \fImacros\fR, which are brief abbreviations for longerconstructs..PPThe C preprocessor is intended to be used only with C, \*(C+, andObjective-C source code. In the past, it has been abused as a generaltext processor. It will choke on input which does not obey C's lexicalrules. For example, apostrophes will be interpreted as the beginning ofcharacter constants, and cause errors. Also, you cannot rely on itpreserving characteristics of the input which are not significant toC\-family languages. If a Makefile is preprocessed, all the hard tabswill be removed, and the Makefile will not work..PPHaving said that, you can often get away with using cpp on things whichare not C. Other Algol-ish programming languages are often safe(Pascal, Ada, etc.) So is assembly, with caution. \fB\-traditional\-cpp\fRmode preserves more white space, and is otherwise more permissive. Manyof the problems can be avoided by writing C or \*(C+ style commentsinstead of native language comments, and keeping macros simple..PPWherever possible, you should use a preprocessor geared to the languageyou are writing in. Modern versions of the \s-1GNU\s0 assembler have macrofacilities. Most high level programming languages have their ownconditional compilation and inclusion mechanism. If all else fails,try a true general text processor, such as \s-1GNU\s0 M4..PPC preprocessors vary in some details. This manual discusses the \s-1GNU\s0 Cpreprocessor, which provides a small superset of the features of \s-1ISO\s0Standard C. In its default mode, the \s-1GNU\s0 C preprocessor does not do afew things required by the standard. These are features which arerarely, if ever, used, and may cause surprising changes to the meaningof a program which does not expect them. To get strict \s-1ISO\s0 Standard C,you should use the \fB\-std=c89\fR or \fB\-std=c99\fR options, dependingon which version of the standard you want. To get all the mandatorydiagnostics, you must also use \fB\-pedantic\fR. .PPThis manual describes the behavior of the \s-1ISO\s0 preprocessor. Tominimize gratuitous differences, where the \s-1ISO\s0 preprocessor'sbehavior does not conflict with traditional semantics, thetraditional preprocessor should behave the same way. The variousdifferences that do exist are detailed in the section \fBTraditionalMode\fR..PPFor clarity, unless noted otherwise, references to \fB\s-1CPP\s0\fR in thismanual refer to \s-1GNU\s0 \s-1CPP\s0..SH "OPTIONS".IX Header "OPTIONS"The C preprocessor expects two file names as arguments, \fIinfile\fR and\&\fIoutfile\fR. The preprocessor reads \fIinfile\fR together with anyother files it specifies with \fB#include\fR. All the output generatedby the combined input files is written in \fIoutfile\fR..PPEither \fIinfile\fR or \fIoutfile\fR may be \fB\-\fR, which as\&\fIinfile\fR means to read from standard input and as \fIoutfile\fRmeans to write to standard output. Also, if either file is omitted, itmeans the same as if \fB\-\fR had been specified for that file..PPUnless otherwise noted, or the option ends in \fB=\fR, all optionswhich take an argument may have that argument appear either immediatelyafter the option, or with a space between option and argument:\&\fB\-Ifoo\fR and \fB\-I foo\fR have the same effect..PPMany options have multi-letter names; therefore multiple single-letteroptions may \fInot\fR be grouped: \fB\-dM\fR is very different from\&\fB\-d\ \-M\fR..IP "\fB\-D\fR \fIname\fR" 4.IX Item "-D name"Predefine \fIname\fR as a macro, with definition \f(CW1\fR..IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4.IX Item "-D name=definition"Predefine \fIname\fR as a macro, with definition \fIdefinition\fR.The contents of \fIdefinition\fR are tokenized and processed as ifthey appeared during translation phase three in a \fB#define\fRdirective. In particular, the definition will be truncated byembedded newline characters..SpIf you are invoking the preprocessor from a shell or shell-likeprogram you may need to use the shell's quoting syntax to protectcharacters such as spaces that have a meaning in the shell syntax..SpIf you wish to define a function-like macro on the command line, writeits argument list with surrounding parentheses before the equals sign(if any). Parentheses are meaningful to most shells, so you will needto quote the option. With \fBsh\fR and \fBcsh\fR,\&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works..Sp\&\fB\-D\fR and \fB\-U\fR options are processed in the order theyare given on the command line. All \fB\-imacros\fR \fIfile\fR and\&\fB\-include\fR \fIfile\fR options are processed after all\&\fB\-D\fR and \fB\-U\fR options..IP "\fB\-U\fR \fIname\fR" 4.IX Item "-U name"Cancel any previous definition of \fIname\fR, either built in orprovided with a \fB\-D\fR option..IP "\fB\-undef\fR" 4.IX Item "-undef"Do not predefine any system-specific or GCC-specific macros. Thestandard predefined macros remain defined..IP "\fB\-I\fR \fIdir\fR" 4.IX Item "-I dir"Add the directory \fIdir\fR to the list of directories to be searchedfor header files..SpDirectories named by \fB\-I\fR are searched before the standardsystem include directories. If the directory \fIdir\fR is a standardsystem include directory, the option is ignored to ensure that thedefault search order for system directories and the special treatmentof system headers are not defeated\&..IP "\fB\-o\fR \fIfile\fR" 4.IX Item "-o file"Write output to \fIfile\fR. This is the same as specifying \fIfile\fRas the second non-option argument to \fBcpp\fR. \fBgcc\fR has adifferent interpretation of a second non-option argument, so you mustuse \fB\-o\fR to specify the output file..IP "\fB\-Wall\fR" 4.IX Item "-Wall"Turns on all optional warnings which are desirable for normal code.At present this is \fB\-Wcomment\fR, \fB\-Wtrigraphs\fR,\&\fB\-Wmultichar\fR and a warning about integer promotion causing achange of sign in \f(CW\*(C`#if\*(C'\fR expressions. Note that many of thepreprocessor's warnings are on by default and have no options tocontrol them..IP "\fB\-Wcomment\fR" 4.IX Item "-Wcomment".PD 0.IP "\fB\-Wcomments\fR" 4.IX Item "-Wcomments".PDWarn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fRcomment, or whenever a backslash-newline appears in a \fB//\fR comment.(Both forms have the same effect.).IP "\fB\-Wtrigraphs\fR" 4.IX Item "-Wtrigraphs"@anchor{Wtrigraphs}Most trigraphs in comments cannot affect the meaning of the program.However, a trigraph that would form an escaped newline (\fB??/\fR atthe end of a line) can, by changing where the comment begins or ends.Therefore, only trigraphs that would form escaped newlines producewarnings inside a comment..SpThis option is implied by \fB\-Wall\fR. If \fB\-Wall\fR is notgiven, this option is still enabled unless trigraphs are enabled. Toget trigraph conversion without warnings, but get the other\&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR..IP "\fB\-Wtraditional\fR" 4.IX Item "-Wtraditional"Warn about certain constructs that behave differently in traditional and\&\s-1ISO\s0 C. Also warn about \s-1ISO\s0 C constructs that have no traditional Cequivalent, and problematic constructs which should be avoided..IP "\fB\-Wimport\fR" 4.IX Item "-Wimport"Warn the first time \fB#import\fR is used..IP "\fB\-Wundef\fR" 4.IX Item "-Wundef"Warn whenever an identifier which is not a macro is encountered in an\&\fB#if\fR directive, outside of \fBdefined\fR. Such identifiers are
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -