A Language Processing System


A language processing system includes the following components: (i) preprocessor, (ii) compiler, (iii) assembler, (iv) linker, and (v) loader.

Preprocessor
It is a program invoked by various compilers to process code before compilation. For example, the C preprocessor, cpp, handles comment deletion, textual macro substitution, conditional compilation for if-then-else statements, dead code elimination, and inclusion of other files.

Compiler
A compiler is a program that reads a program written in one language—the source language—and translates it into an equivalent program in another—the target language.

It usually takes third-generation language code and translates it into specific assembly code.

Assembler
An assembler is a program that creates object code by translating assembly instruction mnemonics into opcodes, and by resolving symbolic names for memory locations and other entities.




      I think I’ve discovered the secret of life —    
      you just hang around until you get used to it.    
      ― Charles Schultz