by Dinesh Thakur Category: Compiler Design

                     Language processing system

Pre-processor

A source program may be divided into modules stored in separate files. The task of collecting the source program is entrusted to a separate program called pre-processor. It may also expand macros into source language statement.

Compiler

Compiler is a program that takes source program as input and produces assembly language program as output.

Assembler

Assembler is a program that converts assembly language program into machine language program. It produces re-locatable machine code as its output.

Loader and link-editor

• The re-locatable machine code has to be linked together with other re-locatable object files and library files into the code that actually runs on the machine.
• The linker resolves external memory addresses, where the code in one file may refer to a location in another file.
• The loader puts together the entire executable object files into memory for execution.



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.