This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Integration with C
- From: Andrew Haley <aph at redhat dot com>
- To: Geert Bevin <gbevin at uwyn dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 17 Apr 2003 18:14:46 +0100
- Subject: Integration with C
- References: <3E9ED96E.4040702@uwyn.com>
Geert Bevin writes:
> Hello,
>
> I need to write a mechanism for providing callback hooks to C code. I'm
> using gcj to write a backend library which would eventually by usable by
> a C gui frontend written in for example Gtk+ or Gnome. The backend
> however needs to provide updates and events to the gui interface for
> user-friendlyness.
>
> What's the best approach here, using CNI or JNI? I never did this, so
> before setting off to learn one, it would be best to pick the most
> appropriate one right way ;-)
CNI is vastly more efficient. This might be important to you.
Andrew.