Will cni be the sane native interface to c++ in openjdk U gcj?

Dalibor Topic robilad@kaffe.org
Tue Dec 25 14:59:00 GMT 2007


ter wrote:
> Hi,
>> This is a development question from a user's point of view. Not a
> compiler writer myself. I am using swig (a great program) right now to
> write a java binding for an existing c++ library. c++ is flattened to c
> on the native side, and then rebuilt back into objects on the java side.
> I understand cni is a much better approach. The binding from cni into
> full c++ would be much less complex, especially if the c++ code has good
> separation between interface and implementation.
>> I got on this list just to ask this question. It's been bugging me, and
> I haven't found any discussion of it.

Something like CNI would be a major addition to the RI, and would likely 
require a corresponding spec, test suite, and JSR to go in. If someone 
steps forward to do the JCP rites, it could be nice to have.
cheers,
dalibor topic


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /