In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rwsenser wrote: Hi Peter, Attached is a zip file with a C program that uses your new libs and my older SXIO.H. The program is called sxstring.c. When I started mixing the various libs together, I started to hit some issues plus I found an area you might want to change in your string functions for input strings. If you compare your originals with the string2.h and stdlib2.h in the zip file, you can see the differences. I used windiff to compare them. Summary of changes: I moved some variables to 'shrBank'. If you try to compile sxstring.c, with sxio.h present and the original string.h and stdlib.b present, you can see the errors. The problem is all the code is trying to use the easy-to-use shared storage at locations 0x8 to oxf. I also changed some call parameters from 'char *' to 'const char *'. This makes it possible to access strings (char arrays) that are constant, and therefore not in RAM. sxio.h needs to be included first as it contains an interrupt handler. I need to add library 1, etc. pragma to it and find a way to move it's non 0x8 to 0xf around. Right now it goes in bank 1. I think I might set it for bank 7. In summary, with a little tuning we should be able to produce libs that use less of the really limited shrBank (0x8 to 0xf) memory and make it possible for these to coexist with larger C programs. These libs are really great! I've not found a single bug! Maybe we should exchange a few direct emails/messages to sort these lib sizing and location issues out. 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=204491#m205004 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)