PROPHET/OS
NAME
cpp: the C preprocessor of the own compiler
SYNOPSIS
cpp [-I folder] [-DNAME[=VALUE]] [-UNAME] [-m machine] <file>
DESCRIPTION
The C preprocessor of the own compiler. It reads a C file, follows its #include lines, expands its macros, keeps the groups of #if that hold, and writes the text the compiler reads, one source line to one output line.
- -I folder searches the folder for included files, in the order given; a quoted name is looked for beside the including file first. - -DNAME, -DNAME=VALUE and -UNAME define and remove macros before the first line, in the order given. - -m machine chooses the predefined macros of a machine, x86_64 when none is named.
The output is the contract gcc -E -P keeps: no line markers, and the same tokens. cc/tools/compare/cpp_compare.py holds that against every C file of the tree.
Errors name the file and the line; with one, cpp ends with 1.
EXAMPLE
$ cpp --help cpp [-I folder] [-DNAME[=VALUE]] [-UNAME] [-m machine] <file> preprocesses a C file and writes the text the compiler reads