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: libgcj_bc.so not embedded



On Sat, 7 Apr 2007, Andrew Pinski wrote:


On 4/7/07, J.C. Pizarro <jcpiza@gmail.com> wrote:
Sure? Why GCJ depends on C++ of GCC?

Because part of the libgcj library is written in C++ :). GCJ's runtime library is written in Java, C, and C++ and C++ code can call Java code via the CNI interface which was created even before JNI was designed :). GCJ does support JNI now too but GCJ was the first Java implementation to support native libraries even before Sun did.

And, I might add in reply to an earlier message, CNI is the other major reason to use gcj. It makes it possible to treat a body of Java code like any other C/C++ library out there. gcj makes Java code usable and accessible to the non-Java world. This is where the static linking requirements keeps coming from.


Andi..


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