Generating an efficient compiler for a data parallel language from a denotational specification
1994 (English)In: Compiler Construction / [ed] Peter A. Fritzson, Springer Berlin/Heidelberg, 1994, 248-262 p.Conference paper (Refereed)
There are very few examples of the generation of efficient compilers from denotational specifications. Usually such compilers generate code which is orders of magnitude slower than from hand-written ones. However, as has been demonstrated by our DML (Denotational Meta Language) compiler generation system, through appropriate single-threading analysis it is possible to obtain code of comparable quality to hand-written compilers. Another problem with denotational specifications is, because of their denotational nature, the need to introduce complicated power domains to model non-determinism and parallelism. In this work we have used a more practical two-level approach: use denotational specifications to model the meaning of the source language in terms of an abstract machine of low-level operations, including data-parallel operations. Then use operational semantics for the specification of this abstract machine.
This paper reports experience from building a prototype compiler for a small Algol-like parallel language using a version of the DML system called DML-P, which has been extended to support data-parallel operations. The final code contains calls to a portable data-parallel vector code library (VCODE CVL). The speed of generated compilers are within a factor of three from handwritten ones. Extensive benchmarks of a DML-P generated compiler are presented.
Place, publisher, year, edition, pages
Springer Berlin/Heidelberg, 1994. 248-262 p.
Lecture Notes in Computer Science, ISSN 0302-9743 (print), 1611-3349 (online) ; 786
Electrical Engineering, Electronic Engineering, Information Engineering
IdentifiersURN: urn:nbn:se:liu:diva-110103DOI: 10.1007/3-540-57877-3_17ISBN: 978-3-540-57877-2 (print)ISBN: 978-3-540-48371-7 (online)OAI: oai:DiVA.org:liu-110103DiVA: diva2:742766
5th International Conference, CC '94 Edinburgh, U.K., April 7–9, 1994