This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Will cni be the sane native interface to c++ in openjdk U gcj?
- From: ter <et at ihear dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 24 Dec 2007 13:51:56 -0800
- Subject: Will cni be the sane native interface to c++ in openjdk U gcj?
- Reply-to: et at ihear dot com
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.
ter