Wednesday, September 21, 2011

Language processor

                    A language processor is a special type of a computer software that has the capacity of translator the source code or program codes into machine codes. The following are different types of language processors are:
  • Compiler
  • Assembler
  • Interpreter
Compiler:
                  A compiler is a language processor which translate source code from high level language into binary machine code . 

Assembler:
     An assembler translates from a low level language to binary machine code. The assembler produces one machine instruction for each source instruction . The assemblers are generally used in assembling the source code or program code written in assembly language .
  Interpreter: 
          An interpreter is different from compiler and assembler . It does not convert program into machine code format instead ot directs the CPU to obey each program statement . That means interpreter translate and executes each statement of instruction simultaneously. 
         As we discussed above, there are other language processors such as linker, debugger and loader. Let us examine how source code is compiled and it results into an executable file in c language .  

15 comments: