[uClinux-dev] 68K GNU Compiler

Michael Schnell mschnell at lumino.de
Fri Aug 3 07:07:28 EDT 2012


On 08/03/2012 11:48 AM, Luis Alves wrote:
> At the moment I'm still using gcc 4.2.x

I would be thankful If you could check whether in your projects, gcc 
creates code that sets ad checks bits in memory and does memory/memory 
operations when appropriate.

I feel
volatile int xx, xy; xx |= 0x80; yx |= 0x0x80000000;

should create
BSET 7, xx+3   and   BSET 7, xy



and
if (xy & 0x4000)

should create BTST 6, xy+2




and xy=xx

should create MOVE.L xx, xy



-Michael



More information about the uClinux-dev mailing list