Bob Blick wrote: >> Though - The hex file was, according to my notes, *twice* as large as >> one generated from substantially similar code (except for what needed to >> be changed for porting) by BoostC. > > Perhaps there was different padding in the hex file - was the actual > rom/ram usage double? I think so. The note from my log says "Ported LedDriver to mikroC. Wow - uses twice as much ROM!" The descendant of this program - pretty similar, I think - uses 925 words in BoostC. As I recall, it was also around 1K in PICC Lite, and around 2K in mikroC. I assumed at the time that the code generator was common between mikroC and Pascal. > It'd be interesting to look at disassembled code from different compilers. I should have done a more detailed analysis, but I needed to move ahead. I remember glancing at the source and thinking "Wow, THAT's wasteful!" but I can't remember what 'that' was. -- Timothy J. Weber http://timothyweber.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist