C to Java']Java: converting pointers into references

被引:0
|
作者
Demaine, ED [1 ]
机构
[1] Univ Waterloo, Dept Comp Sci, Waterloo, ON N2L 3G1, Canada
来源
CONCURRENCY-PRACTICE AND EXPERIENCE | 1998年 / 10卷 / 11-13期
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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. (C) 1998 John Whey & Sons, Ltd.
引用
收藏
页码:851 / 861
页数:11
相关论文
共 50 条