[clean-list] Optimising Recursive Functions Yielding Multiple Results in Tuples?

John van Groningen johnvg@cs.kun.nl
Wed, 26 Jun 2002 12:50:25 +0200


....
>This leads me to believe that the Clean 1.3.3.2 compiler does *not*
>implement the tuple optimisation proposed by van Groningen.

It is implemented, but not enabled, because there are still a few
small bugs and it has not been tested very well yet.

>...
>Hence, my question is:
>
>  Which version of the compiler do I need to download in order to
>  experiment with the optimisation from the above paper? Or is it just a
>  matter of some compiler switch that I don't know?

You should download Clean 2.0 and the source code of Clean 2.0. In the
file settings.c in the folder backendC, change the boolean
OptimizeLazyTupleRecursion from False to True. Then rebuild the backend.dll
using the files in the backendC folder. If you use the CodeWarrior 6
C compiler, you can use the backend.mcp project.
Now use this backend.dll instead, by replacing the backend.dll file in
the folder containg the file CleanCompiler200.exe.

Regards,

John van Groningen