Hostname: page-component-78c5997874-mlc7c Total loading time: 0 Render date: 2024-11-20T01:22:17.848Z Has data issue: false hasContentIssue false

Single Assignment C: efficient support for high-level array operations in a functional setting

Published online by Cambridge University Press:  29 October 2003

SVEN-BODO SCHOLZ
Affiliation:
Institut für Informatik und Praktische Mathematik, Christian-Albrechts-Universität Kiel, Herman-Rodewald-Strasse 3, 24118 Kiel, Germany (e-mail: [email protected])
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

This paper presents a novel approach for integrating arrays with access time ${\cal O}$(1) into functional languages. It introduces n-dimensional arrays combined with a type system that supports hierarchies of array types with varying shape information as well as a shape-invariant form of array comprehension called WITH-loop. Together, these constructs allow for a programming style similar to that of array programming languages such as APL. We use Single Assignment C (SAC), a functional C-variant aimed at numerical applications that is based on the proposed design, to demonstrate that programs written in that style can be compiled to code whose runtime performance is competitive with that of hand-optimized Fortran programs. However, essential prerequisites for such performance figures are a shape inference system integrated in the type system as well as several high-level optimizations. Most notably of these is With Loop Folding, an optimization technique for eliminating intermediate arrays.

Type
Article
Copyright
© 2003 Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.