Define the c preprocessor, C/C++ Programming

Define the C Preprocessor?

Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it usually the preprocessor performs textual substitutions on your source code.




Pre-process text for input to the compiler


Compile pre-processed text into intermediate code

Code generator

Generate assembler code for a target machine


Compile assembler code into object modules


Link object modules into executable code

1193_C Preprocessor.png

The pre-processor basically processes text; it knows virtually nothing about C syntax. It scans the input program text look for the directives in which the first character on a line is a '#'. While it convenes these directives, it takes certain actions including other files to be processed defining symbols, and so on it acts completely on the program text and will happily pre-process text which may be complete gibberish for the C compiler. This pre-processed text is after that passed on to the C compiler itself which checks the C syntax and if it consumes it, likes it, translating it into some intermediate code which is output, ready for input to the next phase.

Posted Date: 6/14/2013 2:02:03 AM | Location : United States

Related Discussions:- Define the c preprocessor, Assignment Help, Ask Question on Define the c preprocessor, Get Answer, Expert's Help, Define the c preprocessor Discussions

Write discussion on Define the c preprocessor
Your posts are moderated
Related Questions
Jewels can only be removed for polishing from either end of the necklace

Binary logical bit-wise operators  There are three logical bit-wise operators :                   &             and                 |              or

Write a C++ program that calculates the area of a circle, rectangle and square using overloaded versions of a function area ().Your program should include both declarations and def

I. COURSE DESCRIPTION Develops a working knowledge of object-oriented concepts in areas of classes, inheritance, data structures, error handling, templates and file processing.

A: Memory that has no pointer pointing to it and there is no method to delete or reuse this memory(object), it causes Memory leak. { Base *b = new base(); } Out of this

#an array that accept input and gives an output

write a program to calculate gross salary and net salary using hra da pf in c++

A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concate