Of course, that should have been: http://piclist.org/techref/microchip/language/c/stringformat.htm Rolf Rolf wrote: > Have a look at: > > file:///C:/Repository/NikonSB/StringFormat.html > > Made my C program a chunk smaller by re-using strings in messages > (stored as tables in program memory....). I wrote it with C18 in mind, > but will probably be useful for HitechC as well. > > (Especially if you say your menu system is obese). > > Rolf > > Brent Brown wrote: > >> My comments below on various replies.. >> >> >> [snip] >> Interesting idea... so I did a quick test to try it. >> Compiling for PIC16F88 --> 3669 words (89.6% of 4096 words). >> Compiling for PIC18F1320 --> 3511 words (85.7% of 4096 words). >> Used Hi-Tech PICC and PICC-18 Compilers. Commented out about a dowzen lines >> that wouldn;t compile without some tweaking. Not a huge difference in code size >> although it does at least tend to confirm that 18F programs can be more size >> efficient as one might expect. >> >> Other bit's and pieces... I'm not using floats, printf or any large data structures. My >> menu structure is not great but not obese either. The one thing that pushed me over >> the top was adding CRC checking for my 1 wire temperature sensors - needed it >> because I'm getting the occasional erroneous result. This adds about 300 program >> words. >> >> Having made some improvements and nips/tucks in other areas I think I will keep >> plodding along and get as much code as possible squeeezed in to my prototype(s) - >> gotta be working by the end of this week! After that I'll have to look at a bigger >> micro, new PCB, seems like there are a few possibilities. >> >> It's a shame I can't find anything about a PIC16F89. A couple of ICE vendors make >> pods described as being for PIC16F87/88/89 so perhaps this is something >> scheduled for the future, and just maybe the difference is it has larger Flash? Can't >> help the feeling that I've read about it somewhere. >> >> Thanks all for the tips. >> >> > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist