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

I need computer application/program, I need Computer application/program. ...

I need Computer application/program. Project Description:                                                                I want a project done. It is a computer desktop appli

Control structures in cpp, Control structures The control structures app...

Control structures The control structures appear in both structured programming languages as well as object oriented programming languages.  The three constructs used are: i)

Car rental project, I need a project on car rental system using c programmi...

I need a project on car rental system using c programming only of college level

Program is to perform string operations, Program is to perform string opera...

Program is to perform string operations: Program is to perform string operation without using in built functions using classes and object void mainmenu()    {    clrs

Writing a c++ program, how can I write a c++ program that generate all evn ...

how can I write a c++ program that generate all evn numbers less than 1000?

Dds, dsgdgdgdfgegwfesfsddfvxvwe

dsgdgdgdfgegwfesfsddfvxvwe

Miss, Depreciation to a salvage value of 0. For tax purposes an item m...

Depreciation to a salvage value of 0. For tax purposes an item may be depreciated over a period of several years, n. With the straight line method of depreciati

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