Compiler - Register Allocation

No.12739984 ViewReplyOriginalReport
Not sure if this board works for this but.

Let's say I had 2 registers, and the machine code was something like this.

loadI 1 => ra
loadl 2 => rb
mult ra,rb => rc
mult rc, rb => rd
mult rd, ra => re

if you aren't using feasible registers, how do you store the values of ra and rb so you can use them later. The mult ra, rb=> rc will require you to do some sort of storage in memory but I'm not sure what.