Hi all, Yes. Currently my project is at 55824 out of 66584 program addresses used, program memory utilization is 83% With all optimizations on. I haven't been able to use debug mode for some time now. However, the idea of turning on debug in only one file hadn't occurred to me. Good idea if it's possible. Much of the space in my application is text strings for status out the serial port as the system operates. I turn most of that off this way: #ifdef FULL_DIAGNOSTICS #define DEBUGSTR(s) printf((far rom char *)s) #else #define DEBUGSTR(s) #endif The Electronic Lead Screw runs a 23kHz timer giving me an interrupt every 43uS. Optimization is critical there since there are times when almost all of that 43uS is used inside the interrupt routine. Outside that an LCD is updated periodically with floating point values so the float to string functions and everything involved with floating point take a lot of space. John Dammeyer > > > > Of course one may not have the luxury of turning > optimizations off (i.e. > > chip is close to full). It's for reasons like that that I > always try to > > prototype on the absolute largest reasonable part possible. > > > > TTYL > > > I agree. I've also put compiler flags in my code to disable > sections that > work so I can get the resulting nonoptimized code small > enough to debug > other sections. > > Harold > > > -- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist