German University in Cairo Department of Computer Science Dr. Gerrit Kalkbrenner
Compiler Construction,
Spring 2008
Assignment 1
Discussion: March 1st , 2008 (1 Mark)
Exercise 1-1
Explain the dierence between a compiler and an interpreter. (1 Mark)
Exercise 1-2
What are the advantages of a compiler over an interpreter? (1 Mark) What advantages are there to a language processing system in which the compiler produces assembly language rather than machine language? Exercise 1-3
(1 Mark) A compiler that translates a high level language into another high-level language is called a source-to-source translator. What advantages are there to use C as a target language for a compiler? Exercise 1-4
(1 Mark)
Exercise 1-5
Describe some of the tasks that an assembler needs to perform. (5 Marks)
Exercise 1-6
Indicate which of the following terms: (1) imperative (2) declarative (3) Von Neumann (4) object oriented (5) functional (6) third generation (7) fourth generation (8) scripting apply to which of the following languages (a) C (b) C++ (c) Cobol (d) Fortran (e) Java (f) Lisp (g) ML (h) Perl (i) Python (j) VM
1