[Oberon] Question on ORG.SaveRegs / ORG.RestoreRegs in the FPGA Oberon compiler

Paul Reed paulreed at paddedcell.com
Wed Dec 19 18:08:23 CET 2018


Hi Peter,

> There comes the question: why is the register variable loaded before the
> parameters are evaluated? To save a register? This should not matter on
> RISC5. Looks to me it would be much nicer code without.

Not sure what you mean.  The value of the procedure (proper procedure or
function) variable will be in a register before the parameter evaluation
if, for example, it comes from looking up in an array or dereferencing a
pointer.

Cheers,
Paul




More information about the Oberon mailing list