Hello all,

I have one application - some special type of headlamp driven by PIC12F675. The 
problem is that I can not fit into the memory. I get following from ASM code:
;       code size estimation:
;         794+   74 =   868 instructions ( 1884 byte)

It means that I should have around 150 words free (as 12F675 has 1024 code 
words). But I get error "no target memory available in section .code".

I have tested, that if I comment out several lines to have 822 instructions, I 
can fit in the memory.

I use all functions static. Most of them is used on more places, so inlining is 
not the right way. My variables are as short as possible. But there is a lot of 
banksels near variables. Can I optimize banksels somehow ? I could not find any 
SDCC flag for PIC14 port.

Is there any other way how to reduce the overhead code ? Probably something in 
libsdcc.lib and pic12f675.lib ?

Thank you in advance,
Vasek


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to