William "Chops" Westfield wrote: > (Some of the secret is in trusting that the compiler will do =20 > reasonable things given standardish syntax. PORTB |=3D 2 had better =20 > compile to a single BSF instruction when possible (for example), or =20 > you go yell at the compiler vendor.) Part of /this/ secret is reading the compiler documentation (assuming, of course, that you use a compiler that has decent documentation). It should in enough detail address everything that is not standard C -- for example, how it handles bits, ports, stack, variable banks, recursion, pointers etc. Don't go yell at the vendor before having read the docs... :) Gerhard --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .