Question: a) Make a diagram of the Code Generation process where the Source Program generates the Target Program. b) Translate the expression in number 2 into
a) Make a diagram of the Code Generation process where the Source Program generates the Target Program.
b) Translate the expression in number 2 into an instruction for memory allocation using the instruction set in the table below.
| Instructions | Form | Description |
| Load | LD A, x | Load memory x into register A |
| Store | ST x, A | Stores the value from register A to memory x |
| Computation | [ADD/SUB/MUL/DIV] A src1, src2 | Perform intermediate computational operations src1 and src2, as well as save the result is in register A |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
