Chapter 1: Introduction to Compiling

https://youtu.be/GqAckeV6R4Q?si=DQhHWYtWtZZLWQNT

https://youtu.be/CalenZaTM0g?si=DduslBaDKFpUSuBG

A compiler is a computer program that decodes computer code in one programming language into another.

  • Phases of a Compiler
    • Question: What are the phases of a compiler? Describe different phases of the compiler with examples.
    • Years: [2021, 2019, 2017, 2015, 2013, 2011, 2010, 2009]
    • Alternate Question: Illustrate the different phases of a compiler with an example.
    • Year: [2020]

this will help a lot:

  • Phases of Analysis
    • Question: What are the phases of analysis in a compiler? Describe them.
    • Years: [2016, 2014]
  • Definition of Compiler & Example Representation
    • Question: Define a compiler. Illustrate the representation of the following statement after each phase of a compiler: Position initial rate x 60.
    • Year: [2014]
  • Illustration of Compiler Phases for Statement
    • Question: Define a compiler. Illustrate the representation of the following statement after each compiler phase: p:= i - r * 70.
    • Year: [2018]
  • Translator Software
    • Question: What do you mean by translator software? Differentiate between a compiler and an interpreter.
    • Years: [2021, 2020, 2019, 2018, 2016, 2012, 2010, 2009]
  • Preprocessor
    • Question: What is a preprocessor? Describe the functions of a preprocessor.
    • Years: [2021, 2020, 2018, 2016, 2014, 2009]
    • Alternate Question: What do you mean by a preprocessor? What are the operations of a preprocessor?
    • Year: [2012]
  • Pass, Cross-Compiler, and Preprocessor
    • Question: Define pass, cross-compiler, and preprocessor.
    • Year: [2015]
  • Symbol Table
    • Question: Define a symbol table. What are the functions of a symbol table?
    • Years: [2020, 2019, 2015, 2012, 2011, 2010]
    • Alternate Question: What is a symbol table? What are the contents of a symbol table?
    • Year: [2013]
  • Data Structures for Symbol Tables
    • Question: Explain the data structures used for symbol tables.
    • Year: [2013]
  • Assembler and Loader
    • Question: What do you mean by an assembler and a loader?
    • Year: [2017]
  • Language Processing System
    • Question: Describe the language processing system.
    • Year: [2016]
  • Types of Errors in Compiler Phases
    • Question: What kinds of errors are found in different compiler phases?
    • Years: [2019, 2015, 2010, 2009]
    • Alternate Question: What are the different kinds of errors encountered during compilation?
    • Year: [2011]
  • Need for Translators
    • Question: Why do we need translators?
    • Year: [2013]