gnupic@linuxhacker.org

gnupic@linuxhacker.org


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

Den 28 Mar 2003 skrev Scott Dattalo:

> On Fri, 28 Mar 2003, Erik Gustavsson wrote:
> 
> > Hi.
> > 
> > I've used only ASM for my previous PIC projects, but
> > now I thought I'd give SDCC a try for my latest creation.
> > 
> > I'm having some problems with statements getting optimized
> > down to nothing. For example:
> 
> That code was clearly unnecessary! :)
> 
> The PIC Port of SDCC has become stagnant. The bugs you've reported are 
> known, but they're not being addressed. What's worse is that I don't know 
> when I'll be returning to SDCC. 
> 

That is really a shame. I was really starting to like SDCC,
but I've already been bitten by another bug (I think).

;  PORTB=(PORTB&0xf0)|(0x02);
        MOVLW   0xf0
        ANDWF   _PORTB,W
        MOVLW   0x02
        MOVWF   _PORTB

Seems to me the second MOVLW should have been a IORLW.
I was kind of thinking of having a look at the SDCC 
code myself, but I don't really know where to start...

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

gnupic@linuxhacker.org