A Partial Evaluator for C phoenix.labri.fr · 24 points · 1 comments · HN thread ...
HN Best 200 @best
A Partial Evaluator for C phoenix.labri.fr · 24 points · 1 comments · HN thread
TL;DR Tempo is a partial evaluator for C, developed at IRISA/INRIA and LaBRI in France, that specializes programs by fixing known inputs ahead of time. The page describes its two-phase design (binding-time analysis followed by specialization), compile-time and run-time modes, and its applications, and announces the binary release for i386 Linux in July 2000, with a source release under GPL planned.
- Tempo is an off-line partial evaluator: an analysis phase annotates which constructs are static (computable from known inputs) or dynamic, then a specialization phase generates the specialized program.
- Analysis is interprocedural and tracks pointer aliases and side effects, which C's pointers make necessary.
- Example: a miniprintf specialized on the format string "<%d,%d>" becomes a function that just calls putchar and putint on fixed values.
- Specialization can happen at compile time (source-to-source) or at run time (generating binary code templates).
- Listed applications include Sun RPC, BSD packet filter, FFT and math libraries, interpreters, and pattern matching, with reported substantial speedups.
- Distribution moved from licensed access to anonymous FTP; the binary was released without restrictions in July 2000, with a GPL source release expected.
Discussion The thread is very small, with a single comment. It is not a discussion of Tempo itself but a pointer to a related project: the commenter could not find the Tempo source code and instead mentioned LLPE, a partial evaluator for LLVM bitcode. The mood is neutral and informational.
Links from the comments
#partialEvaluation #C #compilers #programAnalysis #specialization