Automating the Ada binding process for Java — How far can we go?
This paper describes an automated approach for generating Ada bindings from Java class files. We start with the set of Java features that require a visible Ada binding, and an Ada compiler's definition of how to interface Ada and Java. We discuss how to obtain the Java definitions from the class file and then translate them into an Ada binding (using the GNAT binding approach). While it is possible to generate a technically complete Ada binding from the information in a Java class file (within the constraints of necessary support from an Ada compiler). However, we show that such a binding has significant limitations from a practical usability perspective.
KeywordsTarget Language Source Language Object File Java Virtual Machine Class String
Unable to display preview. Download preview PDF.
- [AdaBindings]Ada 95 Bindings Report, DASW01-94-C-0054, Task Order T-S5-306, Defense Information Systems Agency Center for Software, 15 August 1995.Google Scholar
- [Aonix]“Read me” file for Aonix Ada 95 to JDK 1.1 binding, available from ftp://ftp.aonix.com/pub/web/ada/jdk_1.1.zipGoogle Scholar
- [AppletWriter]Applet Writer's User Guide, available from the AppletMagic home page, http://www.intermetrics.com/appletmagic/download/appletwriters.guide.txt.Google Scholar
- [c2ada]Automated C to Ada binding tool. Available from http://www.inmet.com/ mg/c2ada.Google Scholar
- [Emery]Emery, David and Nyberg, Karl; “Observations on Portable Ada Systems”, in Ada: the design choice, Proceedings of the Ada-Europe International Conference, Madrid, Spain, 13–15 June 1989. Cambridge University Press. Also available as MITRE Technical Paper MTP-282, February, 1989, Bedford, MA.Google Scholar
- [GNAT]Java to Ada Interfacing, Appendix B of GNAT Ada mapping to JAVA, Ada Core Technologies, in preparation, private communication.Google Scholar
- [GNATJVM]Comar, Cyrille; Dismukes, Gary and Gasperoni, Franco; “Targeting GNAT to the Java Virtual Machine”, in Proceedings of Tri-Ada 1997, ACM SIGAda, St. Louis, 1997.Google Scholar
- [Harold]Harold, Elliotte Rusty Java Secrets, IDG Books Worldwide, Foster City, CA, 1997.Google Scholar
- [Intermetrics]Release notes for release 2.0.1 of AppletMagic, available from the AppletMagic home page, http://www.intermetrics.com/appletmagic/api/index.htmlGoogle Scholar
- [JNI]The Java Native Interface — available at URL http://www.javasoft.com/products/jdk/1.1/docs/guide/jni/specGoogle Scholar
- [Kramer]Kramer, Douglas; The Java Platform, available at http://java.sun.com/docs/white/platform/.Google Scholar
- [Lindholm]Lindhohn, Tim and Yellin, Frank; The Java Virtual Machine Specification, Addison-Wesley, Reading, MA, 1997.Google Scholar
- [Meyer]Meyer, Jon and Downing, Troy; Java Virtual Machine, O'Reilly & Associates, Sebastopol, CA, 1997.Google Scholar
- [POSIX]IEEE Standard IEEE STD 1003.5-1992, POSIX System Interfaces Ada Binding, IEEE, Piscataway, NJ, 1992.Google Scholar
- [Taft]Taft, S. Tucker, “Programming the Internet in Ada 95”, in Proceedings of the Ada-Europe International Conference, 1996. Cambridge University Press; also available as: http://www.inmet.com/stt/adajava_paper/.Google Scholar
- [Taft2]Taft, S. Tucker, private communication.Google Scholar
- [Venners]Venners, Bill, Inside the Java Virtual Machine McGraw-Hill, New York, 1998.Google Scholar
- [Wragg]Wragg, David; Drossopoulou, Sophia and Eisenbach, Susan; “Java Binary Compatibility is Almost Correct”, available as http://outoften.doc.ic.ac.uk/projects/slurp/papers.html#bincompGoogle Scholar