Sciweavers

IFL
1997
Springer

WITH-Loop-Folding in SAC - Condensing Consecutive Array Operations

14 years 3 months ago
WITH-Loop-Folding in SAC - Condensing Consecutive Array Operations
This paper introduces a new compiler optimization called with-loop-folding. It is based on a special loop construct, the withloop, which in the functional language Sac (for Single Assignment C) serves as a versatile vehicle to describe array operations on an elementwise basis. A general mechanism for combining two of these with-loops into a single loop construct is presented. This mechanism constitutes a powerful tool when it comes to generate efficiently executable code from high-level array specifications. By means of a few examples it is shown that even complex nestings of array operations similar to those available in Apl can be transformed into single loop operations which are similar to hand-optimized with-loop specifications. As a consequence, the way a complex array operation is combined from primitive array operations does not affect the runtime performance of the compiled code, i.e., the programmer is liberated from the burden to take performance considerations into accoun...
Sven-Bodo Scholz
Added 08 Aug 2010
Updated 08 Aug 2010
Type Conference
Year 1997
Where IFL
Authors Sven-Bodo Scholz
Comments (0)