what are the compilation steps?
( i want inside the compiler )
Answers were Sorted based on User's Feedback
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 |
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 |
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }
What is wrong with this code?
A stack can be implemented only using array?if not what is used?
du u know test pattern for robosoft? Plz share
1 Answers RoboSoft, TATA, Wipro,
How do you define a function?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Is there any data type in c with variable size?
Will Macros support multiple arguments ?
Write a routine that prints out a 2-D array in spiral order!
read a number & print all its devisors using c-program?
Ow can I insert or delete a line (or record) in the middle of a file?