This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java library wrapper


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]