Lecture # 2

3
Lecture # 2

description

Lecture # 2. 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). - PowerPoint PPT Presentation

Transcript of Lecture # 2

Page 1: Lecture # 2

Lecture # 2

Page 2: Lecture # 2

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

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