This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: status of gcj
- From: "Johannes Klarenbeek" <jklarenbeek at gmail dot com>
- To: "David Daney" <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 4 Oct 2008 16:01:21 -0500
- Subject: Re: status of gcj
- References: <5c179c7f0809151153w6f7fdcd7vbb211b16ba1e103b@mail.gmail.com> <48CEC20A.8070604@avtrex.com> <5c179c7f0809162004y50f5e454mf1f9c0b2e15bc3e4@mail.gmail.com> <48D08914.7070105@avtrex.com> <5c179c7f0809170955s5a6cbc7cidad7ef2bce239ff2@mail.gmail.com> <48D13DAB.2020007@avtrex.com> <5c179c7f0809171036l326f596cjd2f9b546530bbca1@mail.gmail.com> <48D14193.1040400@avtrex.com>
2008/9/17 David Daney <ddaney@avtrex.com>:
> Johannes Klarenbeek wrote:
>>
>> 2008/9/17 David Daney <ddaney@avtrex.com>:
>>>
>>> The current (as of 4.3) version no longer generates byte code, nor
>>> directly
>>> compiles .java source files. Instead we use ecj (Eclipse Compiler for
>>> Java)
>>> to do the java->class compilation. GCJ then compiles the class files
>>> (bytecode) into native code. This give us full java generics support.
>>
>> so that means to compile a java file from source i need to download
>> the eclipse compiler for java as a seperate download..
>>
>
> You need a working gcj to do it.
>
> The configuration and build instructions for GCC tell you how to build a
> working gcj. If you read them you will see where it says to run the
> contrib/download_ecj script to obtain the proper ecj.
i found that the ecj compiler is in java... so i need a jre
environment for it to compile any java class files to java byte code
(or am i doing anything wrong here). that is a little over done isn´t
it? i believe that the packages are in java byte code class files, ...
so could i build a native compiler then?
>
> An often simpler alternative is to use a system that has a pre-built gcj
> installed.
that is not an option, since i´m adding it to firmware linux. a small
development only linux distro.
>
> David Daney
>
- johannes klarenbeek...