> For example you might find that a C compiler generates better code if the > control variable of a for loop decrements down to 0, or if the control variable is > not used inside the for loop at all. You might also find that indexing an array is > much slower that auto incrementing a pointer. >=20 > Regards > Sergio Masci Yes, I've certainly done that kind of thing, especially with code for smaller chips (where I usually code in assembly). It can really make a difference. But in this case, I did nothing to write 'optimal' C, just a straightforward implementation of the algorithm. I was very impressed with the compiler. -- Bob Ammerman RAm Systems. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .