This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: Proposal for CNI/JNI problems


Bernd Kreimeier <bk@lokigames.com> writes:

> I know that's the current proposal. Why is CNI-to-JNI C conversion
> out of the question?

You need to analyze CNI (i.e. C++) source code.  You need to recognize
CNI field and method references, which are just C++ field/method
references.  That implies a semantic analysis of the C++ code.  The
logical tool is a compiler. The only C++ compiler we have available is
G++. It does not emit C source.  Adding an option to emit C is a major
project. It is even worse if you want human-readable C.

What you can do is convert annotated-CNI to JNI C.  That loses some
of the simplicity of CNI, but may be worth considering.  However,
that is a quite different idea.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

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