1. A computer-implemented method for automated rule-based compiling optimization, the method comprising: first compiling source code to generate first compiled code and a set of annotations that associate code segments of the first compiled code with code segments of the source code, wherein the first compiling comprises canonically compiling the source code to generate the first compiled code, and wherein the canonically compiling comprises disabling speculative compiler optimizations and performing non-speculative compiler optimizations using default parameters; executing the first compiled code and monitoring the execution to generate performance characteristics associated with the code segments of the source code according to the annotations; analyzing the performance characteristics according to a set of predefined optimization rules to associate each of a set of the code segments of the source code with a selected compiler optimization; generating optimization control data comprising instructions that each defines one of the selected compiler optimizations and its associated code segment of the source code; and second compiling the source code to generate second compiled code under direction of the optimization control data.