Hi Steve,
Hm....
Multiplier produces incorrect result?
Or just an assembly output tricks registers?
I had no probs with such structures...

~d




-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Steve
Underwood
Sent: Tuesday, May 25, 2004 3:52 PM
To: mspgcc-users@lists.sourceforge.net
Subject: [Mspgcc-users] compiler bug

Hi Dimitry,

I found a problem with the compiled code for GCC 3.2.3.

If a structure is less than or equal to 128 bytes, an array of 
structures is accessed using shifts and adds to calculate the offset 
into the array. However, if the structure is more than 128 bytes the 
multiplier is used for these calculations. When shifts and adds are 
being used things work OK. When the multiplier is used the offset is 
calculated incorrectly.

Regards,
Steve



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.

Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to