Tempo: an offline partial evaluator for C programs
Tempo is a specializer for C that works in two stages: an analysis phase and a specialization phase. The analysis phase examines a program together with information about which inputs will be known at specialization time, then performs binding-time, alias, and side-effect analyses to annotate the code for transformation, accounting for C's pointers and imperative features. The specialization phase then uses these annotations and the known input values to produce a specialized version of the program, either as source-to-source output at compile time or as generated binary code at run time.
GoKawiil's interpretation of the reporting above, not reported fact.
By separating analysis from specialization, Tempo can perform its heavier inter-procedural analysis once and reuse it, which the documentation suggests speeds up repeated specialization compared with on-line partial evaluators that analyze and specialize together. Handling pointers and side effects is particularly significant for C, since aliasing is a major source of imprecision in automatic program specialization tools. The ability to visualize which parts of a program are 'static' versus 'dynamic' could help developers judge how much optimization a given specialization will actually yield.
- Tempo splits specializing C code into a binding-time/alias analysis phase and a code-generation phase.
- It supports both compile-time source-to-source transformation and run-time binary code generation.
- Its analyses are inter-procedural and address C-specific challenges like pointers and side effects.
Source: phoenix.labri.fr, 2026-11-23
Published there as: “A Partial Evaluator for C”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.