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 advantage of using #define to declare a constant?

0 Answers   Agilent, ZS Associates,


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

0 Answers  


write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};

5 Answers  


Hi can anyone tell what is a start up code?

0 Answers   CTS,


How do you override a defined macro?

0 Answers  






what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

9 Answers   HCL,


Can a pointer be static?

0 Answers  


What the advantages of using Unions?

0 Answers   TISL,


write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer

1 Answers  


Why we use conio h in c?

0 Answers  


Describe wild pointers in c?

0 Answers  


char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

7 Answers   Mascot,


Categories