Advertisement

What is compilers ?

 Compilers



          Since a computer hardware is capable of understanding machine level instruction so it is necessary ot convert the instruction before the program can be executed by the computer.
    We have seen that assembly language use an assembler to perform this conversion process. In case of a high level language this job is carried out by a compiler.
    
    Compiler is a transiating program that translates the instruction of high level language into machine language. A compiler is so called because it compilers a set of machine language instructions for every program instruction of a high level language.

    A program written by a programmer in a high level language is called a source program. Which is converted into machine language by a compiler called a object program.

     Compilers are large  program which reside permanently on secondary storage of computer. when the trnslation of a program is to be done, they are copied into the main memory of the computer.

      A compiler us able to find the following types of error in a source program.

(A) Illegal Characters

(B) Illegal combination of characters.

(C) Improper sequencing of Instruction in a program.

    A compiler however connot diagnose logical errors, it can only diagnose system errors in the program

Post a Comment

0 Comments