Muchnick's "Advanced compiler design and implementation" has a recommended order of optimizations. Other books give hints but not always a complete picture. K.Phillips