Hi,

Raphael seems to have fixed this issue in the patches he submitted last
night.

Great, thanks.

My code now compiles and the code size was reduced from 8157 -> 7925
with
the banksel optimization at 3 so this would have been critical to get
the code
to fit into PIC18F4450. I have not run the code yet, but I will report
that
when I get to it later today.

br Kusti


>>> kustaa.nyh...@planmeca.com 8.2.2009 15:04:33 >>>
Hi,

I'm running on low on code memory  on my PIC18F4450 (still waiting for
the 4550 to arrive) and 
looking at the code I figured there are a lot of bank selections
instructions that look superfluos 
so I decided to have a go with --obanksel but I got:


/usr/local/bin/sdcc -c "-Wl,-m,-s 18f4450.lkr" -mpic16 -p18f4450
--disable-warning 85 --std-sdcc99 --obanksel=3 stepper.c -o
../obj/stepper.o
_steppers + 110)(9) == _steppers + 52)(9)
Assertion failed: (0 && "Could not assign a symbol to a bank!"),
function pic16_OptimizeBanksel, file pcode.c, line 9200.
Caught signal 6: SIGABRT


Any words of wisdom on that?

Any other sort of 'global' solutions that I could use to use less code
memory?

I've tried to use unsigned char as my main variable type and generally
tried to be sensible.

br Kusti


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power
of local
resources and data with the reach of the web. Download the Adobe AIR
SDK and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/sdcc-user

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to