My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Optimization  
About using Cat for optimization.
Featured, Usage
Updated Feb 4, 2010 by cdiggins

Optimization

One of the major design goals of Cat is as an intermediate language for optimization. The Cat interpreter provides three tools for optimization: a sub-expression evaluator, inline function expander, and a macro rewriting system.

The various optimization tools are controlled by the meta-commands #p for the partial evaluator, #i for inline expansion, #m for macro application, and #o for optimization.

The #o optimization meta-command, rewrites quotations on the stack using a combination of different techniques.


Sign in to add a comment
Powered by Google Project Hosting