Lecture # 2
-
Upload
eric-hensley -
Category
Documents
-
view
20 -
download
0
description
Transcript of Lecture # 2
![Page 1: Lecture # 2](https://reader035.fdocuments.net/reader035/viewer/2022080917/56813028550346895d95b4f0/html5/thumbnails/1.jpg)
Lecture # 2
![Page 2: Lecture # 2](https://reader035.fdocuments.net/reader035/viewer/2022080917/56813028550346895d95b4f0/html5/thumbnails/2.jpg)
Topics Discussed in Class
• Section 1.1: Introduction to Compilers Analysis Synthesis Model • Section 1.2: Lexical Analysis (Also called Scanning), Syntax
Analysis, Semantic Analysis • Section 1.3: The phases of Compiler (complete)
![Page 3: Lecture # 2](https://reader035.fdocuments.net/reader035/viewer/2022080917/56813028550346895d95b4f0/html5/thumbnails/3.jpg)
Section 1.4: Cousins of Compiler• Interpreters: discussed in detail in first lecture
• Preprocessors: They produce input for the compiler. They perform jobs such as deleting comments, include files, perform macros etc.
• Assemblers: They are translators for Assembly language. Sometimes the compiler will generate assembly language in symbolic form then hand it over to assemblers.
• Linkers: Both compilers and assemblers rely on linkers to collect code separately compiled or assembled in object file into a file that is directly executable.
• Loaders: It resolves all relocatable addresses to base address