public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Craig Vanderborgh <craigvanderborgh@gmail.com>
To: java@gcc.gnu.org
Subject: Re: Use gcj to compile for avr/embedded device
Date: Wed, 04 Nov 2009 16:44:00 -0000	[thread overview]
Message-ID: <7a6473990911040844p528b9361pc9a0ad4b8406ee53@mail.gmail.com> (raw)
In-Reply-To: <W5111753585592291257351432@mail.md>

Hello:

We have our own port of gcc/gcj 3.4.3 for arm-wince-pe.  This is a
different target than AVR (obviously) but the use case you describe is
identical to ours.

You will find that the single most important thing may be to avoid the
gcc/gcj 4.x series.  This is because the libgcj for 4.x is vastly
larger.  How much larger?  You can pretty much count on a factor of
about 2.  For our Voice XML browser, this meant that the statically
linked 4.x binary was about 14MB as opposed to just under 7MB for
3.4.3.  Not a problem if you can afford the bigger binary, but we
didn't have that much flash to burn.

If you have a linuxey runtime environment on AVR the port won't be too
hard.  If you don't it's much more difficult.  Getting
arm-wince-pe-gcj fully operational for Windows CE targets was very
difficult, especially for the garbage collector, interpreter and class
loading.  But it can be done, and the results in our case have been
very rewarding.

Craig Vanderborgh
Voxware Incorporated

On Wed, Nov 4, 2009 at 11:17 AM, Mille M1ll3 <mille@mail.md> wrote:
> Hi,
>
> can anybody provide some instructions/directions on what would be necessary
> to (cross-) compile a Java program using gcj for the AVR set of
> family (or any other embedded architecture for that matter).
> I thought of GCJ as a front-end to GCC so it should be possible
> to use e.g. the avr-gcc backend? Knowing there are some size restrictions
> due to libgcj I was hoping to get around that by statically linking.
> Anyhow some pointers would really help!
> Thanks!
>
> ---------------------------------------------
> This e-mail was sent using Mail.md
>
>
>
>



-- 
"Without forgiveness one remains a prisoner of one's past" -- John Paul II

      reply	other threads:[~2009-11-04 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04 16:17 Mille M1ll3
2009-11-04 16:44 ` Craig Vanderborgh [this message]

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=7a6473990911040844p528b9361pc9a0ad4b8406ee53@mail.gmail.com \
    --to=craigvanderborgh@gmail.com \
    --cc=java@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).