Regenerate c code