Code generation for expressions.
Generate CMA code for the following expressions: a ← 2 • (c+ (b − 3)) b ← b • (a +3)
Assume the following address environment: ρ = {a→ 5, b→ 6, c→ 7}
Execute the generated code by displaying the stack contents after each instruction! Assume that the variables are initialized with the values a = 22, b = 33 and c = 44.
Comments
Leave a comment