A Compiler is a set of programs which are used to convert any high-level programming language into a machine code. A machine code is a language which the computer understands.A high-level programming language could be C, C++, Java etc; which is also called as a source code Thus, a compiler becomes very important from programming point of view.
The primary use of a compiler is to enable the computer to execute any program by converting the source code into binary code (machine code). The computer executes the machine code one by one. Each language have different compilers for different type of computer machines. A compiler for a IBM computer will be different from a Apple macintosh computer. Java,which is a type of object-oriented programming language; has a compiler which can run in any computer system platform available.This serves as one of the major advantage of Java programming language.
HIGH LEVEL PROGRAMMING LANGUAGE SOURCE CODE --> COMPILER--> MACHINE CODE
0 comments:
Post a Comment