gnupic: SDCC warning message
Subject:
Re: SDCC warning message
From:
Scott Dattalo ####@####.####
Date:
22 Jul 2002 03:09:12 -0000
Message-Id: <Pine.LNX.4.44.0207211953390.18249-100000@ruckus.brouhaha.com>
On Sun, 21 Jul 2002, Ricardo Amezquita Orozco wrote:
> I have been trying to compile several simple C programs using SDCC
> compiler (CVS) for pic, and I`m getting a the folowing message
>
> *** Saved 1 registers ***
> *** pass 1, Saved 1 registers, total saved 2 ***
> *** Saved 2 registers ***
> No registers saved on this pass
> WARNING: No more RAM available
> WARNING: No more RAM available
> WARNING: No more RAM available
> pataconera.asm:499:Warning [219] Invalid RAM location specified.
> pataconera.asm:503:Warning [219] Invalid RAM location specified.
> pataconera.asm:563:Warning [219] Invalid RAM location specified.
> pataconera.rel: cannot open.
>
> the asm code seems OK, but the generated registers are completly crazy.
> ....
> r0x22 EQU 0x000
> r0x23 EQU 0xffffffff
> r0x24 EQU 0x000
> ....
>
> am I doing something wrong, or is there a bug in the new register optimization code?
I haven't seen this bug. Maybe SDCC optimized all of your code away and
gpasm is complaining because there's nothing there. :) If you want to send
me a copy of your source file (or a similar program that exhibits this
behavior), I'll take a look at it.
Scott