Question 2
Compiler is a translator program that translates a program written in High Level Language, the source
program and translates it into an equivalent program in Machine Level Language, the target program
a) The computing systems have seen novel compilers created over the years. State 5 examples of compilers
[5marks]
b) A compiler operates in phases. A phase is a logically interrelated operation that takes source program in one representation and produces output in another representation. By means of a diagram, indicate the phases of compiler
[8 marks ]
c) The position of a projectile is described as ; position = initial + rate * 25. Describe the tokens to be generated by the lexical analyser and draw the syntax tree during the syntax analysis
[12 marks]
Comments
Leave a comment