Hostname: page-component-8448b6f56d-sxzjt Total loading time: 0 Render date: 2024-04-16T22:04:12.315Z Has data issue: false hasContentIssue false

Pragmatic aspects of reusable program generators

Published online by Cambridge University Press:  13 May 2003

NORMAN RAMSEY
Affiliation:
Division of Engineering and Applied Sciences, Harvard University, Harvard, CT, USA (email: nr@eecs.harvard.edu)
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.

When writing a program generator requires considerable intellectual effort, it is valuable to amortize that effort by using the generator to build more than one application. When a program generator serves multiple clients, however, the implementor must address pragmatic questions that implementors of single-use program generators can ignore. In how many languages should generated code be written? How should code be packaged? What should the interfaces to the client code look like? How should a user control variations? This paper elaborates on these questions by means of case studies of the New Jersey Machine-Code Toolkit, the $\lambda$-RTL Translator, and the ASDL program generator. It is hoped that the paper will stimulate the development of better techniques. Most urgently needed are a standard way to support multiple target languages and a simple, clear way to control interfaces to generated code.

Type
Research Article
Copyright
© 2003 Cambridge University Press
Submit a response

Discussions

No Discussions have been published for this article.