Showing posts with label compilers for Embedded Systems. Show all posts
Showing posts with label compilers for Embedded Systems. Show all posts

Sunday, September 30, 2012

Single step compilation of a program

Steps Of Program Compilation In Respective Order :

1.Pre-processor
2.Translator
3.Assembler
4.Linker
5.Loader

1. Pre - Processor :

--> I st Stage In Multistage Compilation.
--> It Works Directly On Source File.
--> Converts Input Source File ('.c' etc)  To Expanded Source File('.i') .

                      Where '.i' File Is A Source File ,Which Is :


Native Compiler Vs Cross Compiler

If  A Compiler Helps To Convert The Source Code To Binary Code , Where The 'Target CPU(CPU Where The Binary Code Is Actually Meant To Be Used)'  And  'Origin CPU (CPU Where The Code Has Been Generated And Compiled' Are Same , Is Called Native Compiler.Other Wise Its Understood That We Are Using A Cross Compiler .

Examples Of Native Compilers:
TURBO 'C'