What is compiler?
A compiler is a program that reads a program written in one language and translates into an equivalent program in another language.
List major functions done by compiler
- Compiler is used to convert one form of program to another.
- A compiler should convert the source program to a target machine code in such a way that the generated target code should be easy to understand.
- Compiler should preserve the meaning of source code.
- Compiler should report errors that occur during compilation process.
- The compilation must be done efficiently.
Read More:
- Explain types of compiler / Difference between Single Pass and Multi Pass Compiler
- Explain overview of translation process. Write the difference between compiler, interpreter and assembler
- The context of a compiler / Cousins of compiler
- Explain structure of compiler / Explain phases of compiler / Analysis synthesis model of compilation