codegen: generate real c code
first working version