What is a Compiler?

Federal Board | Past Papers | Notes | A-Level

Back to: Computer Science Class-9 Notes

Compiler
A compiler is a translator that translates a program written in high level language into machine code. Compiler scans the entire program once and then converts it into machine language which can then be executed by computer’s processor.In short compiler translates the entire program in one go and then executes it. Compiler generates error report after translation of entire code.