The Preprocessor Index

From RAD Studio
Jump to: navigation, search

Go Up to C++ Language Guide Index

This section contains C++Builder preprocessor topics.

The preprocessor is a text processor that performs preliminary operations on C and C++ files before they are passed to the compiler. The C++Builder compiler normally invokes the preprocessor in its first pass to convert the text of a source file as part of the first phase of translation. You can also invoke the preprocessor separately, using the command-line preprocessor CPP32.EXE, to process text without compiling. You can use the preprocessor to insert files, conditionally compile code, apply macro substitutions of code, specify compile-time error messages, and apply machine-specific rules to sections of code.

Invoking the C++ Preprocessor

C++ Compiler Platform Operation
BCC32C 32-bit Windows -c- Xclang
BCC32X 32-bit Windows -E
BCC64 64-bit Windows -E
BCCIOSARM 32-bit iOS -E
BCCIOSARM64 64-bit iOS -E
BCCAARM Android -E
Note: For BCC32C some may be accepted and silently ignored.

Invoking the C++ Preprocessor with Command-Line Interfaces of C++ Compilers

Platform Classic Compiler Clang Compiler Operation
32-bit Windows BCC32C.EXE cpp32c.exe
BCC32X.EXE [1] -E
BCC32.EXE cpp32.exe
64-bit Windows BCC64.EXE -E
32-bit iOS BCCIOSARM.EXE -E
64-bit iOS BCCIOSARM64.EXE -E
Android BCCAARM.EXE -E

Topics

  • BCC32X uses Clang command line flags, making it compatible with other Clang-based compilers (BCC32C, BCC64, BCCIOSARM, BCCIOSARM64, and BCCAARM). BCC32C is compatible with the classic compiler flags (BCC32).