On Mar 1, 2014, at 12:16 PM, Lucas Tanure wrote: > http://www.t4f.org/articles/optimization-of-microchip-pic-xc8-compiler-in= -free-and-pro-mode/ Is this using the most recent version of xc8? I've heard (and seen some be= nchmarks) indicating that the "optimization level" has been improved recent= ly. For instance, I just tried the sample one-liner, and got: 103 ;main.c: 46: maxDev =3D CCPR1L >> 4; 104 000118 38BC swapf 4028,w,c ;volatile 105 00011A 0B0F andlw 15 106 00011C 6E20 movwf _maxDev,c ------ The issue of offering a free C compiler with especially poor optimization i= s that the proponents of HLL programming have been claiming for years now t= hat the state of compiler technology is good enough that compilers usually = produce code almost as good as an assembly language programmer could produc= e. (Better, averaged over large programs.) For a major chip vendor to sup= ply a compiler where this is not even close to true reinforces old-style th= inking. :-( BillW --=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 .