generates  ksum C representation