释义 |
preprocessor
pre·proc·ess P0532100 (prē-prŏs′ĕs′, -prō′sĕs′)tr.v. pre·proc·essed, pre·proc·ess·ing, pre·proc·ess·es To perform preliminary processing on (data, for example). pre·proc′es·sor n.preprocessor (priːˈprəʊsɛsə) n (Computer Science) computing a program or device that that alters data to conform with the input requirements of another program
preprocessor
preprocessor[¦prē′prä‚ses·ər] (computer science) A program that converts data into a format suitable for computer processing. preprocessor (programming)A program that transforms input data in some waybefore it is read by the main program. In the case of acompiler, the input is source code. The main advantage ofusing a preprocessor is that it is possible to change thespecification of the input data without changing the mainprogram. The separation can also help to make the system'soverall behaviour easier to understand. The disadvantage isthat performance may be reduced by the extra input and outputperformed between the two programs.
For example, the C preprocessor, cpp, handles textualmacro substitution (it acts as a "macro preprocessor"),conditional compilation and inclusion of other files.
A preprocessor may be used to transform a program into asimpler language, e.g. to transform C++ into C.preprocessorSoftware that performs some preliminary processing on the input before it is processed by the main program. See preprocessing and compiler directive. |