What is a compiler? Give the difference between a compiler and an interpreter? Compiler: i) A program which translates a high level language program into a machine level language program is known as a compiler. ii) Compiler goes through the entire program and then translates the entire program into the machine code. (see fig I.) fig I Compiler compiles the program into the machine code Image reference of the compiler, program and the machine codes In the image the left side box entity is a compiler. The compiler shows the program you have written in the text editor or program editor compiles the whole program. The dotted line shown from the left side entity “the compiler” through the program just represents the compilation of the whole program. The dotted line also shows the program change into the machine code after the compiler compiles the whole program. These machine codes go to the ALU in the CPU that processes the codes and gives the instruction to the output units to perfor...
Simple and Easy notes... Computer Science and Information technology topic available on the blog.... Questions and their answers on computer science and Information technology