In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rwsenser wrote: Hi Peter (and anyone else interested in C4SX), Greetings. Attached is a zip file with a test program called sxstring.h that uses the stdlib.h, sxio.h and other libraries. I have put a small change into sxio.h that arranges the variables in memory such that the bug I found with 'static const char ...' is not present. I've included the sxio-x.h, which fails (if you want to see the coding difference). If you have time, could you download this zip and run the sxstring.h on your SX 28? Note that I have changed some of the string.h, stdlib.h, etc. libraries -- and sxstring.c needs these changed versions. If you have a serial I/O capability great; if not run the program under the debugger and you can see the test results in the RAM/registers. I'm interested in knowing the results you get for the 8 tests -- and if any corruption or odd errors occur. I've not yet heard back from the CC1B people. In any event, the compiler bug is rather obscure and I think I can describe how to avoid it well enough that C coders can work around the issue. Thanks, RWSenser ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=205715#m206560 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)