Optimizing ML with run-time code generation

40Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.

Abstract

We describe the design and implementation of a compiler that automatically translates ordinary programs written in a subset of ML into code that generates native code at run time. Run-time code generation can make use of values and invariants that cannot be exploited at compile time, yielding code that is often superior to statically optimal code. But the cost of optimizing and generating code at run time can be prohibitive. We demonstrate how compile-time specialization can reduce the cost of run-time code generation by an order of magnitude without greatly affecting code quality. Several benchmark programs are examined, which exhibit an average cost of only six cycles per instruction generated at run time. © 1996 ACM.

Cite

CITATION STYLE

APA

Lee, P., & Leone, M. (1996). Optimizing ML with run-time code generation. SIGPLAN Notices (ACM Special Interest Group on Programming Languages), 31(5), 137–148. https://doi.org/10.1145/249069.231407

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free