Software that converts a set of high-level language statements into a lower-level representation.
or, A compiler is a computer program that transforms human readable source code of another computer program into the machine readable code that a CPU can execute.
A compiler usually generates assembly language first and then translates the assembly language into machine language. A utility known as a "linker" then combines all required machine language modules into an executable program that can run in the computer.
The act of transforming source code into machine code is called "compilation".
Task of compiler:-The most important task is to translate the code into machine code. The computer itself cannot understand C++ or Java or any other high level language. The task of compilers and interpreters is to translate the programming language into a language the computer understands and can execute.
or, A compiler is a computer program that transforms human readable source code of another computer program into the machine readable code that a CPU can execute.
A compiler usually generates assembly language first and then translates the assembly language into machine language. A utility known as a "linker" then combines all required machine language modules into an executable program that can run in the computer.
The act of transforming source code into machine code is called "compilation".
Task of compiler:-The most important task is to translate the code into machine code. The computer itself cannot understand C++ or Java or any other high level language. The task of compilers and interpreters is to translate the programming language into a language the computer understands and can execute.
No comments:
Post a Comment