HI,
I'm using the pic16 port of sdcc, subversion version from this weekend.
I made a global initailized data like this:
int firmware[]={1,2,3,4,5};
and then in my code I try to print it like this:
printf_small("%d %d %d",firmware[0], firmware[1], firmware[2]);
but only garbage gets printed.
Two questions:
1) Is what I'm doing incorrect somehow, or is SDCC's support for
initialized data broken?
2) What's the best way to accomplish what I'm trying to do? (I've got
~2k of firmware that my code needs to load into an external device. I
want to store it in code memory, not eeprom. My code needs to read
the code byte-by-byte.)
Regards,
Mark
[EMAIL PROTECTED]
--
You think that it is a secret, but it never has been one.
- fortune cookie
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user