gnupic: SDCC warning message


Previous by date: 23 Jul 2002 05:05:38 -0000 Re: Good PIC-Programmer for Linux ?, matt
Next by date: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Gordon
Previous in thread: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Dattalo
Next in thread: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Gordon

Subject: Re: SDCC warning message
From: Scott Dattalo ####@####.####
Date: 23 Jul 2002 05:05:38 -0000
Message-Id: <Pine.LNX.4.44.0207222142090.22136-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.

Ricardo also sent me the source code for which he experienced this 
problem.

It turns out that the bug is in inc2h.pl. There are a few hard coded items 
in inc2h.pl that don't apply to some of the processors. Specifically, the 
sfr aliasing to banks 2 and 3 for a processor with only banks 0 and 1 
(e.g. a 16f84). 

Kevin, how hard would it be to modify inc2h.pl to also parse the Microchip 
.lkr files. 

What I'm thinking is that we change the invokation of inc2h.pl to be:

inc2h.pl PROCESSOR_NAME [optional path to parent of header/ and lkr/]

Then inc2h.pl can build the .lkr and .inc file names and read the files. 
The .lkr files have all of the information that resides in the data 
section of inc2h.pl. 


-------------

A short term work around is to target only the 16f877. 

Scott



Previous by date: 23 Jul 2002 05:05:38 -0000 Re: Good PIC-Programmer for Linux ?, matt
Next by date: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Gordon
Previous in thread: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Dattalo
Next in thread: 23 Jul 2002 05:05:38 -0000 Re: SDCC warning message, Scott Gordon


Powered by ezmlm-browse 0.20.