Dbt is a project mainly written in C, it's free.
Tiny Dynamic Binary Translation
It's trying generate simple code
Introduction tools:
genop: This tool will generate intermediate.h