kldscp: added codegen.cpp