gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: SDCC overoptimizing
From: Erik Gustavsson
Date: Sat, 29 Mar 2003 01:58:01 +0100 (MET)

> > 
> > Here the first E1 assignment (that is "BSF PORTB,4") is
> > optimized away...
> 
> I belive this specific issue can be worked around by changing the
> definition of BIT_AT() to use sbit instead of bit. 
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=688137&group_id=599&atid=100599
> 

Ah, thanks...  That sounds like it would work. Perhaps it would solve both problems
actually, I noticed that while

while(!SOMEBIT);

doesn't work, this does:

while(!(SOMEREG&MASK));

/cyr
--------------------------------------------------
cyrano(at)algonet(dot)se | http://area26.no-ip.org
--------------------------------------------------

gnupic@linuxhacker.org