Paper by Erik D. Demaine
- Erik D. Demaine, “C to Java: Converting Pointers into References”, Concurrency: Practice and Experience, volume 10, number 11–13, 1998, pages 851–861.
We consider the problem of converting C pointers to the less flexible concept
of references. Our main application is converting scientific applications
from C to Java. We provide a general method to model essentially all features
of pointers using references. The model is easily implemented in Java. We
give optimizations that map key facilities like arrays and structures onto the
obvious Java equivalents, arrays and objects. These improvements make the
conversion “optimal” for all typed pointers. For untyped
pointers, we can still fall back on the general model, hence providing general
automatic conversion from C to Java code, whose efficiency improves with the
quality of the C code.
- The paper is 11 pages.
- The paper is available in PostScript (148k) and PDF (156k).
- See information on file formats.
- [Google Scholar search]
- Related papers:
- Java98 (Converting C Pointers to Java References)
See also other papers by Erik Demaine.
These pages are generated automagically from a
Last updated June 19, 2018 by