2010 · 32 citations · 16 references
ComputingComputer EngineeringComputer ScienceCompilersProgramming LanguagesSystems ProgrammingCompiler ConstructionControl-flow AnalysisData-flow AnalysisJust-in-time CompilationRuntime EnvironmentsRuntime SystemsApplication Performance OptimizationCode InstrumentationCode Quality ImprovementControl Flow ControlExecution TracingJust-in-time Compilation For Managed LanguagesTiered CompilationTrace-based Compilation
Trace-based compilation is a technique used in managed language runtimes to detect and compile frequently executed program paths. The goal is to reduce compilation time and improve code quality by only considering hot parts of methods for compilation. Trace compilation is well suited for interpreter-based execution environments because the control flow of an application program is highly visible and recordable. In this paper, we show that trace compilation is also feasible and beneficial in runtime environments without interpreters where it is more difficult to monitor the control flow of an application.We present the implementation of Maxpath, a trace-based Java just-in-time compiler for the meta-circular Maxine virtual machine. Maxine uses a tiered compilation strategy where methods are first compiled with a non-optimizing just-in-time compiler in order to collect profiling information, and then recompiled with an optimizing compiler for long-term efficient execution. We record traces by dynamically inserting instrumentation code in non-optimized methods. Execution traces are first collected into trace regions, after which they are compiled, optimized and linked to non-optimized methods for efficient execution. We show that trace-based compilation is an effective way to focus scarce compilation resources on performance critical application regions.
16
Stephen M. Blackburn, Robin Garner, Chris Hoffmann et al. · 2006 · 1.6K citations · Full text
Vasanth Bala, Evelyn Duesterwald, Sanjeev Banerjia · ACM SIGPLAN Notices · 2011 · 739 citations
Kenneth B. Stoddard · Optometry and Vision Science · 1948 · 536 citations
Vasanth Bala, Evelyn Duesterwald, Sanjeev Banerjia · 2000 · 533 citations