Week 6
Week 6
A Closer Look at
Instruction Set
Architectures
Objectives
top element.
Binary instructions (e.g., ADD, MULT) use the top
two items on the stack.
5.2 Instruction Formats (12 of 31)
Stack architectures require us to think about
arithmetic expressions a little differently.
We are accustomed to writing expressions
using infix notation, such as: Z = X + Y.
Stack arithmetic requires that we use postfix
notation: Z = XY+.
This is also called reverse Polish notation,
(somewhat) in honor of its Polish inventor, Jan
Lukasiewicz (1878 1956).
5.2 Instruction Formats (13 of 31)