[Icfp04-discuss] Ant optimizers?

David Brown icfp04 at davidb.org
Thu Jun 10 13:14:16 EDT 2004


On Thu, Jun 10, 2004 at 01:56:56PM -0400, Jack Diederich wrote:

> Did anyone write a state optimizer?

I put a few peephole optimizations in our assembler.  It was mostly
because we had

   n:    blah blah   (N+1)
   n+1   flip 1   target target

Because the source language for the compiler was easier to write if some
branches were separate instructions.  The optimizer would combine the
target into the 'n' instruction, and eliminate the flip instruction.

Dave Brown


More information about the Icfp04-discuss mailing list