Table of contents | |
Preprocessor | |
Compiler | |
Assembler | |
Interpreter: | |
Loader and Link-Editor: | |
Translator |
A preprocessor produces input to compilers. They may perform the following functions.
Macro processing:
A preprocessor may allow a user to define macros that are short hands for longer constructs.
File inclusion:
A preprocessor may include header files into the program text.
Rational preprocessor:
These preprocessors augment older languages with more modern flow-of-control and data structuring facilities.
Language Extensions:
These preprocessor attempts to add capabilities to the language by certain amounts to build-in macro
The compiler is a translator program that translates a program written in (HLL) the source program and translates it into an equivalent program in (MLL) the target program. As an important part of a compiler is error showing to the programmer.
Executing a program written n HLL programming language is basically of two parts. the source program must first be compiled translated into an object program. Then the results object program is loaded into a memory executed.
An interpreter is a program that appears to execute a source program as if it were machine language.
Languages such as BASIC, SNOBOL, LISP can be translated using interpreters. JAVA also uses interpreter. The process of interpretation can be carried out in following phases.
1. Lexical analysis
2. Syntax analysis
3. Semantic analysis
4. Direct Execution
Modification of user program can be easily made and implemented as execution proceeds.
1. Ada compilers
2. ALGOL compilers
3. BASIC compilers
4. C# compilers
5. C compilers
6. C++ compilers
7. COBOL compilers
8. Java compilers
26 videos|66 docs|30 tests
|
1. What is a language processing system? |
2. What is the role of a compiler in language processing? |
3. What are the different phases involved in compiler design? |
4. What is the importance of compiler design in computer science engineering? |
5. What is the difference between a compiler and an interpreter? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|