[Oberon] Obstacles when programming in RISC Oberon and proposed patches

Jörg Straube joerg.straube at iaeth.ch
Fri May 30 23:45:28 CEST 2014


Hi

> I also noticed that DEC(var, const) seems to have some optimization
> issues with large constants, in the sense that it calculates the wrong
> value by cutting off the upper 16 bits of the value. INC has the same
> issues; on the other hand, copying the constant to a variable makes it
> work (probably because it cannot use that optimization in that case).

ORG.Increment to blame!

Please correct the code in ORG.Increment to:
    IF (y.mode = ORB.Const) THEN Put1a(op, zr, zr, y.a) ELSE load(y); ...

Jörg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/oberon/attachments/20140530/6732f685/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3644 bytes
Desc: not available
Url : https://lists.inf.ethz.ch/pipermail/oberon/attachments/20140530/6732f685/attachment.bin 


More information about the Oberon mailing list