This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java library wrapper
- From: Per Bothner <per at bothner dot com>
- To: Ray Auge <rayauge at doublebite dot com>
- Cc: GCC-Java <java at gcc dot gnu dot org>
- Date: Wed, 15 Oct 2003 07:28:40 -0700
- Subject: Re: java library wrapper
- References: <1066199062.14167.22.camel@ibook>
Ray Auge wrote:
I'm wondering if it would be possible to create a class-loader-"like"
facility (even just a library) that would allow us to wrap a C or C++
library inside a dynamically created class/package structure. A la
reflection. Between CNI/JNI and some of the other formidable class
manipulation facilities in gcj, it seams at least possible.
Possible, but it's a major project.
I'm going on the assumption that C and C++ libs expose exported symbols
through a symbol table of some kind... like most languages do...
You have the debug symbol table. Parsing that is far from trivial.
It doesn't help that that only Dwarf2 gives you fairly complete C++
information, and not all operating systems use Dwarf2.
--
--Per Bothner
per@bothner.com http://per.bothner.com/