On 4 June 2013 14:12, Dave Tweed wrote: > A lot of us got into the habit of writing ++i "by default" (i.e., unless = we > really needed i++ in an expression), because many simple-minded > small-system > C compilers generate more efficient code for ++i than for i++, even if th= e > result isn't being used. > That's what I was thinking of, however, would not it be the same? Would not compiler generate "INCF i,f; MOVF i,w" as opposed to "MOVF i,w; INCF i,f" -- same amount of instructions? I can imagine there is a difference when you do a "do..while(i--)" or "while(i--){}", so that the compiler can do a single DECFSZ..GOTO. But then "--i" would be worse than "i--" in this matter, right? Tamas > > -- Dave Tweed > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=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 .