Beruflich Dokumente
Kultur Dokumente
C
ompiler
onstruction
Abdul Wahab
Lecturer
IIT, UST Bannu
abdul_bu@yahoo.com.
1
Cousins of Compiler
Preprocessors
Assemblers
Loader and Link-Editor
IDENTIFIER ADDRESS
a 0
b 4
000101 00 00000000 *
0011 01 10 00000010
001001 00 00000000 *
000101 00 00001111
0011 01 10 00000010
001001 00 00010011
1. Lexical analysis
2. Syntactic analysis
3. The creation of Symbol Table
4. Semantic analysis
5. The generation of Intermediate Code
6. Certain amount of Code optimization
7. Error Handling
1. Code Optimization
2. Code Generation
3. Necessary Error handling and Symbol-Table
operations.
C-Language Compiler
Front End
It means that one back end will work for IBM Machine
and 2nd for Apple with a single front end
Abdul Wahab, Lecturer in IT 16
Example:
Suppose we have a C- Compiler with Front End and
Back End and now for FORTRON compiler we have
only to change its front end for FORTRAN and its Back
End will remain the same.
C-Compiler FORTRAN-Compiler
Front End Front End
Target Language
Back End