Jallist Archive Oct 2005

Re: PIC16F88 File Register Limit?

From: "Chester" <hilo90mhz(at)hotmail.com>
Date: 02 Oct 2005 16:51:03 -0000

wow... okay I hate to reply to my own message but I just found out
something pretty crazy.. Using "JAL 0.4.60 windows exe w/16f88 fix"
from the files section I get: 
"compilation  nodes:27833 stack:103Kb heap:12537Kb seconds:1.531
output       code:2167 file:96 stack:8
OK"

-- this compile had 5 more variables added to it to check the register
limit
Using "Jal_MSVC_062" also from the files section I get: 
"compilation  nodes:30567 stack:104Kb heap:11511Kb seconds:1.547
output       code:3499 file:101 stack:8
OK"
 

In the top one the reported file size is tiny.. But I cant add any
more variables or it reports "97 file registers required, only 95
available."

The bottom one doesnt apear to have the file register limit.. But the
code produced is gigantic... Almost double the size.

Anyone know of a way I can get the best of both worlds? more file
registers without the huge code size?

Thanks,
Chester

- In jallist@yahoogroups.com, "Chester"  wrote:
> Hi, 
> Ive been developing some code for the PIC16F88 using the jpic16f88
> last modified by:
> -- 05-Jul-2004 Adapted for the 16F88 by Tim Sweeney
> 
> that I found in the files section here. Also im using a modified
> version of the jal compiler exe that works with the pic16F88(came with
> the jpic16f88)... 
> 
> Im getting an error: 97 file registers required, only 95 available.
> 
> Im wondering where this limitation comes from? The pic16F88 is
> supposed to have 368 bytes of SRAM? But maybe the file registers are
> something different? The error is directly related to how many
> variables I have declared... which is alot in this program, im sure I
> could optimize alot.. but I should have the space so why bother yet..




Seiz System Engineering AbelCam AbelCam WebCam Software for Windows