I've experimenting this a little bit more (my memory conflict, won't repeat it all again here):
Chaning the size of any data structure beyond some limit will cause problems. I tried changing the size of a few of a struct memebers to a smaller int type made the problem go away. Adding an extra array of 8 bytes made the program disappear. Reducing the size of that extra array to 6 bytes made the problem go away. Adding '#pragma stack 0x600 0x100' made the problem go away but printf stopped working. The pattern is pretty much the same what ever I do. Reduce memory usage to some unknow limit and everything works, increase it above the limit and something brakes, depending on what I do, the timer interrupt stops working, or printf/main program loop stops working. And it is always repeatable with no variations ie. it fails always in the same way. So I suspect some sort of stack collision/memory allocation issue. I noticed that the stack is allocated in the middle of memory from 0x0100 to 0x0200, is that ok? Is there any command line parameters I should/could try? br Kusti ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
