Hi,
I have a "variable" or constant that needs to be on code memory. I declared
and put it on a header file like this:
header.h:
#ifndef header
#define header
const char mycod[]=
"\xc3\x00\x01\x00\x00\x00\x00\x00\xed\x4d\x00\x00\x00\x00\x00\x00"
"\xed\x4d\x00\x00\x00\x00\x00\x00\xed\x4d\x00\x00\x00\x00\x00\x00";
#endif
This variable, mycod, needs to be on code memory. I tryed to compile the
code for pic14 but got the message:
Unhandled initialized symbol: mycod
sdcc: /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic/glue.c:1956:
emitInitVal: Assertion `!"Initialized char-arrays are not yet supported,
assign at runtime instead."' failed.
Is there a way to workaround this?
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user