what are the compilation steps?
( i want inside the compiler )

Answers were Sorted based on User's Feedback



what are the compilation steps? ( i want inside the compiler )..

Answer / sai

Before the compilation of any C program Saved as a .C
extention. In C compiler architecture there is a
preprocesser algoritham i.e is used to preprocess the
header files. After including the header files there is a
compiler algorithm that generates .asm file to .c file.
The .obj file is generated from .asm by using assembler
algorithm. the .obj files are 2 types.
1. .boj file for library functions
2. .obj file for user defined functions
There is a linker algorithm to combine and generate .exe
file for .obj files. After .exe file the program executed
sucessfully.

Is This Answer Correct ?    6 Yes 0 No

what are the compilation steps? ( i want inside the compiler )..

Answer / vignesh1988i

first step::: it will include the watever header file
with .h extension
second::: then it will read each line by line ...
third:::: then it will convert the code to the machine
level code
fourth>::: it will then match the syntax with the compailer
syntax which is being writtern there
fifth::: but logical errors in the program cant be found by
the compailer
sixth::: as soon as the syntax is said to be correct this
will be again decoded by the compailer to the user....this
will say SUCCESS... if syntax dosent match wit that syntax
in compailer it will give an ERROR

Is This Answer Correct ?    15 Yes 13 No

Post New Answer

More C Interview Questions

what is the difference between <stdio.h> and "stdio.h"

14 Answers   Invendis, Kanbay, Mastek, MathWorks,


How many data structures are there in c?

0 Answers  


how to write a prog in c to convert decimal number into binary by using recursen function,

1 Answers  


AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?

13 Answers   HCL,


What are inbuilt functions in c?

0 Answers  






What is a method in c?

0 Answers  


What is anagram in c?

0 Answers  


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

0 Answers  


Is a house a mass structure?

0 Answers  


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

0 Answers  


what is the structure pointer?

0 Answers   Accenture, HCL,


what is the advantage of software development

1 Answers  


Categories