Hence, a compiler or an interpreter is a program that converts program written in high-level language into machine code understood by the computer.ġ Compiler works on the complete program at once. We need to convert the source code into machine code and this is accomplished my compilers and interpreters. It only understands program written in 0's and 1's in binary, called the machine code.Ī program written in high-level language is called a source code. But a computer does not understand high-level language. It contains words and phrases from the English (or other) language.
A high-level language is one which is understandable by us humans. We generally write a computer program using a high-level language.