I was using a table driven CRC routine, which takes 256 words of code space just for the table plus about 26 words of code. Many thanks to Steve Baldwin who sent me a nice little CRC function, no table, uses a total of 34 words program space including call to function and testing the result. Obviously slower than the lookup table method but that's fine for me and saves a useful amount of code psace. String packing (2 characters per word) is something Hi-Tech PICC is supposed to do for midrange PIC's that can read their own program memory "if it is efficient to do so". So far it seems to not be doing this, don't know why yet so I will look at that a bit closer. At this stage const strings uses 290 words, or about 7.1% of total Flash. -- Brent Brown, Electronic Design Solutions 16 English Street, St Andrews, Hamilton 3200, New Zealand Ph: +64 7 849 0069 Fax: +64 7 849 0071 Cell: 027 433 4069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist