|
|
1.1 ! root 1: ! 2: ! 3: cpp Command cpp ! 4: ! 5: ! 6: ! 7: ! 8: C preprocessor ! 9: ! 10: ccpppp [_o_p_t_i_o_n...] [_f_i_l_e...] ! 11: ! 12: TThhee ccoommmmaanndd ccpppp ccaallllss tthhee CC pprreepprroocceessssoorr ttoo ppeerrffoorrmm CC pprreepprroocceess- ! 13: ssiinngg. IItt ppeerrffoorrmmss tthhee ooppeerraattiioonnss ddeessccrriibbeedd iinn sseeccttiioonn 33.88 ooff tthhee ! 14: AANNSSII SSttaannddaarrdd; tthheessee iinncclluuddee ffiillee iinncclluussiioonn, ccoonnddiittiioonnaall ccooddee ! 15: sseelleeccttiioonn, ccoonnssttaanntt ddeeffiinniittiioonn, aanndd mmaaccrroo ddeeffiinniittiioonn. SSeeee tthhee ! 16: eennttrryy oonn pprreepprroocceessssiinngg ffoorr aa ffuullll ddeessccrriippttiioonn ooff tthhee CC'ss ! 17: pprreepprroocceessssiinngg llaanngguuaaggee. ! 18: ! 19: NNoorrmmaallllyy, ccpppp iiss uusseedd ttoo pprreepprroocceessss CC pprrooggrraammss, bbuutt iitt ccaann bbee ! 20: uusseedd aass aa ssiimmppllee mmaaccrroo pprroocceessssoorr ffoorr ootthheerr ttyyppeess ooff ffiilleess aass ! 21: wweellll. ccpppp rreeaaddss eeaacchh iinnppuutt ffiillee, pprroocceesssseess ddiirreeccttiivveess, aanndd ! 22: wwrriitteess iittss pprroodduucctt oonn ssttddoouutt. If the option -E is not used, cpp ! 23: also writes into its output statements of the form #lliinnee_n ! 24: _f_i_l_e_n_a_m_e, so that the parser will be able to connect its error ! 25: messages and debugger output with the original line numbers in ! 26: your source files. ! 27: ! 28: ***** Options ***** ! 29: ! 30: The following summarizes cpp's options: ! 31: ! 32: -DD_V_A_R_I_A_B_L_E ! 33: Define VARIABLE for the preprocessor at compilation time. ! 34: For example, the command ! 35: ! 36: cc -DLIMIT=20 foo.c ! 37: ! 38: tells the preprocessor to define the variable LIMIT to be ! 39: 20. The compiled program acts as though the directive ! 40: #define LIMIT 20 were included before its first line. ! 41: ! 42: -EE Strip all comments and line numbers from the source code. ! 43: This option is used to preprocess assembly-language files or ! 44: other sources, and should not be used with the other com- ! 45: piler phases. ! 46: ! 47: -II _d_i_r_e_c_t_o_r_y ! 48: C allows two types of #include directives in a C program, ! 49: i.e., #iinncclluuddee "ffiillee.hh" and #include <file.h>. The -I ! 50: option tells ccpppp to search a specific directory for the ! 51: files you have named in your #iinncclluuddee directives, in addi- ! 52: tion to the directories that it searches by default. You ! 53: can have more than one -II option on your cccc command line. ! 54: ! 55: -oo _f_i_l_e ! 56: Write output into file. If this option is missing, cpp ! 57: writes its output onto ssttddoouutt, which may be redirected. ! 58: ! 59: -UU_V_A_R_I_A_B_L_E ! 60: Undefine VARIABLE, as if an #undef directive were included ! 61: in the source program. This is used to undefine the ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66: ! 67: ! 68: ! 69: cpp Command cpp ! 70: ! 71: ! 72: ! 73: variables that cpp defines by default. ! 74: ! 75: ***** See Also ***** ! 76: ! 77: C preprocessor, cc, commands ! 78: ! 79: ! 80: ! 81: ! 82: ! 83: ! 84: ! 85: ! 86: ! 87: ! 88: ! 89: ! 90: ! 91: ! 92: ! 93: ! 94: ! 95: ! 96: ! 97: ! 98: ! 99: ! 100: ! 101: ! 102: ! 103: ! 104: ! 105: ! 106: ! 107: ! 108: ! 109: ! 110: ! 111: ! 112: ! 113: ! 114: ! 115: ! 116: ! 117: ! 118: ! 119: ! 120: ! 121: ! 122: ! 123: ! 124: ! 125: ! 126: ! 127: ! 128: ! 129: ! 130: COHERENT Lexicon Page 2 ! 131: ! 132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.