public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Use gcj to compile for avr/embedded device
@ 2009-11-04 16:17 Mille M1ll3
  2009-11-04 16:44 ` Craig Vanderborgh
  0 siblings, 1 reply; 2+ messages in thread
From: Mille M1ll3 @ 2009-11-04 16:17 UTC (permalink / raw)
  To: java

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use gcj to compile for avr/embedded device
  2009-11-04 16:17 Use gcj to compile for avr/embedded device Mille M1ll3
@ 2009-11-04 16:44 ` Craig Vanderborgh
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Vanderborgh @ 2009-11-04 16:44 UTC (permalink / raw)
  To: java

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-04 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 16:17 Use gcj to compile for avr/embedded device Mille M1ll3
2009-11-04 16:44 ` Craig Vanderborgh

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).