Lucas Tanure wrote: > My two cents, > please read : > http://www.t4f.org/articles/optimization-of-microchip-pic-xc8-compiler-in= -free-and-pro-mode/ > =20 I could be wrong here but I think he is unreasonable to conclude this is=20 deliberate "de-optimisation". It may be that the code generation stage=20 of the compiler is simply designed such that it always uses memory=20 locations to store temporary values (thereby avoiding having to worry=20 about them being clobbered by instruction groups that need to use W) and=20 that the optimiser is expected to remove those memory accesses where it=20 is safe to do so. Disable the optimiser and you get code that does a=20 shedload of unnessacery memory access. --=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 .