Homework Problem !
17-Feb-91 16:39:38
Sb: #7663-Homework Problem !
Fm: Gary Dunlap 76672,1610
To: Roberto F. Lacambra 72727,2710
Michelle,
The primary reason for PostFix notation is to do the actual evaluation.
Most assemblers and interpreters use postfix format for the actual
evaluation. First values are move into registers or pseudo registers, then
the operations are done. For example, the standard way to do (a+b)*c in
68000 assembler would be
move.l a,d0
move.l b,d1
add.l d1,d0
move.l c,d1
muls.l d1,d0
or in 80287 assembler,
fld a
fld b
fadd
fld c
fmul
>> Gary <<