IT lexicon › Programming › Preprocessor

Preprocessor

Programming På svenska → Updated: 2026-11-13

A tool that processes source code before actual compilation. Handles macros, file inclusion, and conditional text.

The preprocessor is a simple text processing stage before the compiler starts. It expands macros, includes other files, and can skip code based on conditions. COBOL and C use this extensively. It's practical for platform-specific code, but can make code hard to follow and debug, since compiler errors refer to expanded code, not the original.

← Back to the lexicon