libgcj_bc.so not embedded
Andi Vajda
andi@osafoundation.org
Sat Apr 7 17:36:00 GMT 2007
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..
More information about the Java
mailing list