first the preprocessor test it for header file and then matches it for the error in his stage two errors are their. if the errors not their then the translater translate it and the linker link it and it is converted into source code
the question ' how a compiler translate program into source code' seems me to be wrong..m sorry....may be i m wrong...but as far as i have read till now the input to the compiler is itself the source code and it(compiler) produces assembly language code as output..
A compiler is a computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language, often having a binary form known as object code). The most common reason for wanting to transform source code is to create an executable program.
the question is wrong .compiler is designed to translates higher level language to machine level
Compiler is a program which translates a program written in source language(high level) to target(machine level) language..! It's translates the source code but n't into the source code..
Question is wrong....actually compiler is used to translate one program into its equivalent program.......
what is meant by thrashing?
Compiler Will Translate From Higherlevel Language To Lowerlovel Language i.e From Source Program Into Target Program.............................................Plz Refer Ullmen Book Once Then U will Understand Better................By Midhu