Convert C/C++ program to Preprocessor code Last Updated : 29 Aug, 2018 Comments Improve Suggest changes Like Article Like Report We use g++ compiler to turn provided Cpp code into preprocessor code. To see the preprocessor code generated by the CPP compiler, we can use the ā-Eā option on the command line: Preprocessor include all the # directives in the code. and also expands MACRO function. Syntax: g++ -E filename.cpp CPP // MACRO named MAX initialism to 10 #define MAX 10 int main() { int a = MAX, b = MAX; // Add two values. int c = a + b; return 0; } Running the command: g++ -E geeks.cc Output : int main() { int a = 10, b = 10; // Add two values. int c = a + b; return 0; } Comment More infoAdvertise with us Next Article Convert C/C++ program to Preprocessor code N Naman_Garg Follow Improve Article Tags : Misc C Language C++ Practice Tags : CPPMisc Similar Reads How a Preprocessor works in C? Compiling a C program - Behind the Scene A Preprocessor is a system software (a computer program that is designed to run on computer's hardware and application programs). It performs preprocessing of the High Level Language(HLL). Preprocessing is the first step of the language processing system. Lan 3 min read C++ Preprocessor And Preprocessor Directives The preprocessor in C++ is a tool that process the code before it is compiled by the compiler. It does many tasks such as including header files, conditional compilation, text substitution, removing comments, etc. Preprocessor also allows the developers to select which portions of code should be inc 6 min read C Preprocessor Directives In C programming, the preprocessor is a program that process the source code before the actual compilation begins. It uses preprocessor directives are commands that instruct the preprocessor to perform specific actions. These directives start with the # symbol.List of Preprocessor DirectivesThe foll 6 min read C program to detect tokens in a C program As it is known that Lexical Analysis is the first phase of compiler also known as scanner. It converts the input program into a sequence of Tokens. A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol.For Example: 1) Keyword 5 min read Convert C/C++ code to assembly language The C/C++ compiler turn the given C/C++ source code into the Assembly Code. Then it is converted to the object code. We can use this property to convert the C or C++ code to assembly code.We use gcc compiler to turn provided C/C++ code into assembly language. To see the assembly code generated by th 3 min read Like