Define the c preprocessor, C/C++ Programming

Assignment Help:

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.

Module

Purpose

Pre-processor

Pre-process text for input to the compiler

Compiler

Compile pre-processed text into intermediate code

Code generator

Generate assembler code for a target machine

Assembler

Compile assembler code into object modules

Linker

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.


Related Discussions:- Define the c preprocessor

multiplication of matrices with compatibility check, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Implement the c++ code in assembly language, Selecting Array Elements Imple...

Selecting Array Elements Implement the following C++ code in assembly language, using the block-structured .IF and .WHILE directives. Assume that all variables are 32-bit signed in

Can i drop the [] while deleteing array of some built-in , Can I drop the [...

Can I drop the [] while deleteing array of some built-in type (char, int, etc)? A: No. you can't Sometimes programmers think that the [] in the delete[] p only present so the

Inheritance and polymorphism, The zipped folder int_collection.zip (downloa...

The zipped folder int_collection.zip (downloaded from Blackboard) contains an abstract class AbstractIntCollection and two interfaces: IntList and IntStack. The abstract class cont

Should my constructors employ"assignment"or"initialization, Should my const...

Should my constructors employ "assignment" or "initialization lists"?

Write a program to act as an electronic safe, Write a program to act as an ...

Write a program to act as an electronic safe. If the correct code has been entered the program should display "Safe Open".  If an incorrect code is input it should display "Alarm"

Define a structure in c++, Define a structure in C++: Write a program ...

Define a structure in C++: Write a program a structure in c++ program. void main() {                 struct player                 {                 char name[2

Resection method, recsection method source code for searching position

recsection method source code for searching position

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd