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.