Modified C generator.  Speeds up code by factor of 10.