Modular C code generator