From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17803 invoked by alias); 4 Nov 2009 16:44:15 -0000 Received: (qmail 17795 invoked by uid 22791); 4 Nov 2009 16:44:14 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_20,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f209.google.com (HELO mail-gx0-f209.google.com) (209.85.217.209) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Nov 2009 16:44:11 +0000 Received: by gxk1 with SMTP id 1so1511108gxk.16 for ; Wed, 04 Nov 2009 08:44:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.250.13 with SMTP id x13mr3063637ybh.230.1257353049456; Wed, 04 Nov 2009 08:44:09 -0800 (PST) In-Reply-To: References: Date: Wed, 04 Nov 2009 16:44:00 -0000 Message-ID: <7a6473990911040844p528b9361pc9a0ad4b8406ee53@mail.gmail.com> Subject: Re: Use gcj to compile for avr/embedded device From: Craig Vanderborgh To: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00001.txt.bz2 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 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