Libfirm is a sort of leaner and smaller llvm, written in C and with almost no dependencies. Might be good to implement another backend to ensure genericity.