We propose a profile based code selection scheme for an AOT Java compiler. This scheme relies on a model that accurately predicts the speedup of a given selection. The model takes into account the cross-call patterns of the application. This approach allows us to reduce the size of compiled code significantly for several benchmarks.
De Verdière, V. C., Cros, S., Fabre, C., Guider, R., & Yovine, S. (2002). Speedup prediction for selective compilation of embedded java programs. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 2491, pp. 227–239). Springer Verlag. https://doi.org/10.1007/3-540-45828-x_17