From: Hanno Meyer-Thurow <h.mth@web.de>
To: Karl Trygve Kalleberg <karltk@gentoo.org>
Cc: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] work on gcj for gentoo
Date: Tue, 21 Feb 2006 19:14:43 +0100 [thread overview]
Message-ID: <20060221191443.ce7e9f11.h.mth@web.de> (raw)
In-Reply-To: <43FB34FB.4030807@gentoo.org>
On Tue, 21 Feb 2006 16:42:51 +0100
Karl Trygve Kalleberg <karltk@gentoo.org> wrote:
> Excellent! We need all the help we can get.
Whatever I can do.
> > ... Then use gcj to create native
> > executables or libraries out of that jar files. Creating a database
> > via gcj-dbtool for jar / native code resolution. If possible Java to
> > native.
>
> The problem with this approach is your resulting programs will be
> potentially rather slow.
I got an example from OOo for jar to native compilation.
It may not be lightening-fast but ...
http://www.openoffice.org/issues/show_bug.cgi?id=54692
... there it still speeds up the process.
What is done there:
* jars -> native libraries
* .java -> native binaray
What used to do a JVM with jars now does a native binary with jars
compiled to native libs. Time went down from 3h40 to 2h45.
I hit a oom-killer feature of gij - run as JVM - there on my 512MB ram
testbox. If you compile that Java source to native that oom-kill
vanishes.
Still, just an example.
> While gcj can indeed compile .class files (inside .jars) to binary, I've
> been told it can produce the most efficient of results. The source code
> is much richer in structure than the bytecode, and opens up for many
> effective optimizations which could only be reached through
> "idiom-recognition" (which doesn't exist for gcj yet, afaik) of the
> .class files.
In a perfect world ... ;)
> I suspect that you shouldn't give up on using gcj as a source compiler
> quite yet. This story may evolve with the whole ecj/gcjx/GPLv3 debate.
I use gcj successfully on my testbox.
As far as it is possible. And with ecj as bytecompiler all my ugly hacks will
be a part of the past.
Only trouble I have actually is eclipse-sdk. Another oom-killer at runtime.
May be I find the time to get it to native code somehow.
Regards,
Hanno
--
gentoo-java@gentoo.org mailing list
next prev parent reply other threads:[~2006-02-21 18:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-21 15:04 [gentoo-java] work on gcj for gentoo Hanno Meyer-Thurow
2006-02-21 15:42 ` Karl Trygve Kalleberg
2006-02-21 18:14 ` Hanno Meyer-Thurow [this message]
2006-02-21 18:21 ` Karl Trygve Kalleberg
2006-02-21 15:45 ` Joshua Nichols
2006-02-21 15:55 ` Joshua Nichols
2006-02-21 17:53 ` Hanno Meyer-Thurow
2006-02-22 8:16 ` Andrew Cowie
2006-02-27 22:38 ` Hanno Meyer-Thurow
2006-03-01 12:30 ` Andrew Cowie
2006-03-01 14:38 ` Hanno Meyer-Thurow
2006-02-28 7:34 ` [RESEND] " Hanno Meyer-Thurow
2006-02-22 16:51 ` Hanno Meyer-Thurow
2006-02-23 2:09 ` Andrew Cowie
2006-02-23 11:25 ` Hanno Meyer-Thurow
2006-02-24 17:26 ` Hanno Meyer-Thurow
2006-02-25 14:43 ` Hanno Meyer-Thurow
2006-02-28 10:25 ` Hanno Meyer-Thurow
2006-02-28 20:37 ` Hanno Meyer-Thurow
2006-03-02 10:35 ` Hanno Meyer-Thurow
2006-03-11 20:51 ` Hanno Meyer-Thurow
2006-03-12 18:25 ` Hanno Meyer-Thurow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060221191443.ce7e9f11.h.mth@web.de \
--to=h.mth@web.de \
--cc=gentoo-java@lists.gentoo.org \
--cc=karltk@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox