java library wrapper
Wed Oct 15 14:29:00 GMT 2003
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.
More information about the Java