CS224: Compiler Design and Implementation Quiz
32 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Load-and-go Compilers: gives programs ready for ______

execution

Cross-language compilers: compilers between high level ______

languages

Compiler is divided into two parts: Front End and ______

Back End

The Front End translates a program from source language to an ______ language

<p>intermediate</p> Signup and view all the answers

The back End translates from the intermediate language to the ______ language

<p>machine</p> Signup and view all the answers

The lexical analyzer reads the input program as a character stream and produces a stream of lexemes (or token strings) as ______

<p>output</p> Signup and view all the answers

The lexical analyzer searches the current work in a table (called symbol table) and adds it if not ______

<p>found</p> Signup and view all the answers

Syntactic Analyzer (or parser): takes as input the Token stream produced by the lexical ______

<p>analyzer</p> Signup and view all the answers

The semantic analyzer determines if the meaning is respected in the user ______

<p>program</p> Signup and view all the answers

The intermediate code generator produces a code that is not related to the target ______

<p>machine</p> Signup and view all the answers

CS224: Compiler design and implementation Dr. Delel RHOUMA 2 Goals: - Compilers are used everyday in most computers. - Allow students to implement big programming projects. - Parts of most projects (specially those containing command language) can be built in the same way compilers are built. 3 Introduction 1. ______ 2. Compilers implementation languages 3. Compiler structure 4. Example

<p>Terminology</p> Signup and view all the answers

______ - Compilers: translate programs written in high level languages. The entire program has to be translated before execution (compared to a book translation).

<p>Interpreters</p> Signup and view all the answers

The ______ Language - Source Language - Source Code - Implementation language - Target machine: the machine to which the translation will be done.

<p>High</p> Signup and view all the answers

How to choose the compiler ______ language - The first compiler was written in assembly language

<p>implementation</p> Signup and view all the answers

C Program C Compiler 8086 Machine Code How to choose the compiler ______ language - The first compiler was written in assembly language

<p>Fortran77</p> Signup and view all the answers

Source Code Compiler Object Code Linker Executable Code The are some compilers do not respect this ______.

<p>pattern</p> Signup and view all the answers

Communication is the process of exchanging information by the use of words, letters, symbols, or ______ behavior.

<p>nonverbal</p> Signup and view all the answers

A lack of communication skills can be detrimental to new ______.

<p>workers</p> Signup and view all the answers

IT workers need communication skills as well as ______ skills.

<p>technical</p> Signup and view all the answers

Temp agencies report that communication skills can trump the degree a person ______.

<p>carries</p> Signup and view all the answers

Communication is the process of exchanging information by the use of words, letters, symbols, or ______ behavior.

<p>nonverbal</p> Signup and view all the answers

The single most important factor for choosing ______.

<p>managers</p> Signup and view all the answers

Improved stakeholder response leads to ______ professional image

<p>enhanced</p> Signup and view all the answers

Quicker problem solving results in increased ______

<p>productivity</p> Signup and view all the answers

Effective business communication leads to stronger ______ relationships

<p>business</p> Signup and view all the answers

Communication is about making sense and sharing ______

<p>sense</p> Signup and view all the answers

Human communication is about creating ______

<p>meaning</p> Signup and view all the answers

Verbal and nonverbal messages are part of ______

<p>communication</p> Signup and view all the answers

Be aware of your communication with yourself and ______

<p>others</p> Signup and view all the answers

Appropriately adapt messages to ______

<p>others</p> Signup and view all the answers

Interpersonal communication is when two people interact to mutually influence each other for the purpose of managing ______

<p>relationships</p> Signup and view all the answers

The back end translates from the intermediate language to the ______ language

<p>target</p> Signup and view all the answers

Study Notes

Compiler Basics

  • Load-and-go compilers give programs ready for execution.
  • Cross-language compilers are used between high-level languages.

Compiler Structure

  • A compiler is divided into two parts: Front End and Back End.
  • The Front End translates a program from source language to an intermediate language.
  • The Back End translates from the intermediate language to the target language.

Front End

  • The lexical analyzer reads the input program as a character stream and produces a stream of lexemes (or token strings) as output.
  • The lexical analyzer searches the current work in a table (called symbol table) and adds it if not present.
  • The Syntactic Analyzer (or parser) takes as input the Token stream produced by the lexical analyzer.
  • The semantic analyzer determines if the meaning is respected in the user program.

Back End

  • The intermediate code generator produces a code that is not related to the target language.
  • The Back End translates from the intermediate language to the target language.

Compiler Goals

  • Compilers are used every day in most computers.
  • Compilers allow students to implement big programming projects.
  • Parts of most projects (specially those containing command language) can be built in the same way compilers are built.

Communication in IT

  • Communication is the process of exchanging information by the use of words, letters, symbols, or behavior.
  • A lack of communication skills can be detrimental to new IT workers.
  • IT workers need communication skills as well as technical skills.
  • Effective business communication leads to stronger professional relationships.

Effective Communication

  • Be aware of your communication with yourself and others.
  • Appropriately adapt messages to different audiences.
  • Verbal and nonverbal messages are part of human communication.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

Test your knowledge on compiler design and implementation with this quiz covering terminology, implementation languages, compiler structure, and examples.

More Like This

Use Quizgecko on...
Browser
Browser