





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






1
By :
10/15/
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 22
3
General background of a software engineer
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 33
10/15/
W iti il i d t di f
Writing a compiler requires an understanding of almost all of the major subfields of computer sciencescience
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 44
7
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 77
10/15/
Jon Von Neumann in the late 1940: Machine Language
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 88
9
1957 Fortran ¾ First steps ¾ Arithmetic expressions ¾ Set of procedures 1960 Algol (Algo Oriented Language) ¾ First formal language definition ¾ Block structure (locality of names) ¾ Recursion
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 99
10/15/
1970 Pascal ¾ Type concept ¾ Virtual machines (P-code) ¾ RR ecursive descent parsingi d t i
today C++, Java, … ¾¾ Optimizing compilersOptimizing compilers ¾ New language concepts ¾ Separate compilation ¾ Object-orientation ¾ Threads and distribution ¾ Exception handling
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 1010
13
Properties
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 1313
10/15/
Program (^) A bl
g written in a Programming Languages
Assembly Language Translation 15 15--OctOct--10 10 SufiSufi TabassumTabassum GulGul 1414
Languages
15
Input => High-level programming language
Output => Low level assembly instructionsOutput => Low-level assembly instructions
Compiler has to:
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 1515
10/15/
Compilers are computer programs that translate one language to another.g g Compiler takes as itsp input a program written in Source Language and produces a program written in Target Languageproduces a program written in Target Language. Usually the source language is High Level LLanguage and the target language is Object Code d th t t l i Obj t C d sometimes also called Machine Code.
15 15--OctOct--10 10 Sufi Tabassum GulSufi Tabassum Gul 1616