(a) Write the following expression in postfix (reverse Polish) notation. Use standard rules of precedence for arithmetic operations.
A ? B + C × (D × E ? F)
(b) Design a minimal set of 3 address instructions necessary to evaluate the expression; explain what each instruction does. ?
Example: An instruction:
ADD A, B, C could do A ? B + C or B ? A + C or C ? A + B.
It is necessary to know what the instruction is actually doing.
(c) Repeat (b) using 2 address instructions
(d) Repeat (b) using 1 address instructions
(e) Write a program to evaluate the above arithmetic statement using the 3 address instructions set you designed.