Compiler middleware