• Consider the following program written according to the grammar given in the laboratory assignment-5. Its semantics is as usual. • We shall generate intermediate 3-address code and GNU x86-64 assembly language target code for this program. ✫
Code Gen Example
✪
Goutam Biswas
✬
✩
Compiler Design
3
A Program
global def n, i, sum : int end print "Enter a positive integer: " ; read %d n; sum := 0; i := 0; while i