Friday, July 31, 2009

Compilation steps in turbo c++?

Can any one tell me compilation steps in order


1.preprossing.


2.lexical


3.linker.


4.compile.


5.execute.

Compilation steps in turbo c++?
These are called the C++ compilation model:





1) Preprossesor: The Preprocessor accepts source code as input and is responsible for


- removing comments


- interpreting special preprocessor directives denoted by #.





2) Lexical: More relevent to the keywords being used in the program. Lexical pertains to dictionary of C++ keywords that are predefined and using it as variable may result in erroneous errors.





3) Linker: If a source file references library functions or functions defined in other source files the link editor combines these functions (with main()) to create an executable file. External Variable references resolved here also.





4) Compiler: The C++ compiler translates source to assembly code. The source code is received from the preprocessor.





5) Execute: Execution of a program is the final outputing-seeking task that involves all the above levels of compilation, i.e, a program execution goes through preprocessing, lexical analysis, linking and compilation stages to produce a meaningful output!
Reply:1


2


4


3


5


No comments:

Post a Comment