Hi Olin, Detecting and Adjusting references is one of the most basic things an optimizer should be capable of doing. This is especially true on a PIC since there are only 2 instructions capable of directly modifying the program counter, CALL and GOTO. And there might also be instructions which add/move/subtract(i've never seen this) to the PCL register. This should be no trouble detecting. Jeethu Rao > I don't think there are any meaningful optimizations that can be performed > on the final instructions only that are safe. As soon as you move an > instruction, you could be breaking references to that address > with no way to > detect some of those references. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu