Compiler


 
 
Concept Explanation
 

Compiler

The term compiler was coined by American computer scientist Grace Hopper, who designed one of the first compiler, A-0 in the early 1950s. A compiler is a program that translates a source program written in some high-level programming language (such as Java) into machine code for some computer architecture (such as the Intel Pentium architecture). The generated machine code can be later executed many times against different data time.

        Source;Coderightarrow Compilerrightarrow Object;code 

"Compiler is a program which takes as input a program of a high level language and produces object program in machine code"

Object program generated by compiler is machine dependent. It means that programs compiled for one type of machine will not run in another type. Therefore, every type of machine must have its personal compiler for a particular language. Machine independence is achieved by using standard higher-level language on different machines and converting them for use on specific machines through a compiler.

.... (More Text Available, Login?)
Sample Questions
(More Questions for each concept available in Login)
Question : 1

Compiling creates a (n) ___________________________

Right Option : D
View Explanation
Explanation
Question : 2

Which of the following statement(s) is/are incorrect about assembler?

(i) It converts programs written in the high-level language to the machine language or binary code.

(ii) It converts the source code into the object code then convert into machine code.

(iii) It takes less time than the compiler.

Right Option : C
View Explanation
Explanation
Question : 3

Compiler is the ________________________-

Right Option : D
View Explanation
Explanation
 
 


Students / Parents Reviews [10]