Since the pic16f877a has 386 bytes of RAM, saving a few hundred words
would be significant. The pic18f2620 is in the same package with almost
4k bytes of RAM at a very similar price. Just my 2 cents, but if you are 
that
close to the limits, it is time to consider different hardware.

George


Dan Puccio wrote:
> I'm new to the SDCC, but I think that, generally, there are two linker 
> files for each PIC - one for use with the debugger and one for 
> "production."  The one for the debugger allocates memory in the PIC for 
> the debugger.  If you're linking with that file, you could recover some 
> memory by linking with the other one if you don't need the ICD2 for 
> debugging.  I think that the linker files for the ICD2 have an "i" in 
> the filename.  That may be good for a few hundred memory words, anyway.
>
>
>
>
> Raphael Neider wrote:
>   
>>> error: no target memory available for section "ID_piccode_1"
>>>     
>>>       
>> You ran out of data memory (ID_xxx is initialized data). The message tells
>> you that the linker was unable to put initialized PLUS uninitialized data
>> into the available memory banks.
>>
>> Try splitting you data structures into multiple source files to allow the
>> linker to better fill the pages (all initialized data defined in one
>> source file is forced into the same page; same for uninit'ed data).
>>
>>   
>>     
>>> Is there something that i could do to compile this code without
>>>     
>>>       
>> rewritting a
>>   
>>     
>>> smaller code?
>>>     
>>>       
>> Code size is not currently the problem, data sizes are.
>>
>> Hope that helps,
>> Raphael
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Sdcc-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>>
>>   
>>     
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to