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]

Invoke shared gcj binary from JVM?


As a GCJ newbie, I'm hoping someone can clue me in to a few things.

I'm responsible for a Java client-side application which we currently
distribute with the Sun JRE (1.4.1).  For various reasons (primarily
performance) we're pursuing gcj compilation of memory/cpu intensive portions
of the application and, at least for now, keeping our Swing UI intact.

First question: is this possible?  The only solution I can conceive is to
compile to static binaries and manually create JNI wrappers over the DLLs.
This is cumbersome because the first target for native compilation is the
database layer (HSQLDB), which has a large interface to wrap.  Are there
code generators to automate this process?

Secondly, should I even expect performance gains using a dual Sun/gcj
environment?  Empirically, we've realized noticeable changes compiling with
JET on Windows, but JET isn't a cross-platform solution.

Any comments would be appreciated.

Thanks,
Dan


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