Large amounts of text seem to cause PicForth to generate bad code
Alex Holden <[email protected]> Thu, 02 Dec 2004 10:27:20 +0000
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Message-ID | <[email protected]> |
I just added a 'help' word to my program which sends about ten lines of text to 'type' (defined one at a time with c" - each line is less than 80 characters). I didn't think there would be a problem because I have more than enough program memory spare, but the resulting program went completely doolally- printing garbage, killing the interrupt handler, randomly jumping to the bootloader, etc. I cut the help text down to a single line and everything worked fine again. Then I tried to do a binary search to find out just how much text I could use before it went mad, and I ended up with the compilation dying with the error message 'Bank switch over test'. I think the amount of code has just gone over 2Kwords (pfd.py says 2216 bytes but I think it means 2216 words), but I'm using an 8K PIC and I've adjusted the location of sermon.fs appropriately. Does Picforth have any known problems with including relatively large amounts of text program? -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer