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 variable declaration and definition in c?

0 Answers  


What is the difference between declaring a variable and defining a variable?

0 Answers  


#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }

3 Answers   IBM,


What is omp_num_threads?

0 Answers  


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

0 Answers  






logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............

2 Answers   Infosys,


how to create c progarm without void main()?

1 Answers   NIIT,


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

0 Answers   Huawei,


How do I convert a string to all upper or lower case?

0 Answers  


What is identifiers in c with examples?

0 Answers  


what does exit() do?

3 Answers   Cadence,


How to run c Program without using IDE of c. means if program made in notepad.then how to compile by command prompt.

1 Answers   HP, TCS,


Categories