This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj problem


Hello,

You wrote:
> Is it possible to build gcj as cross compiler for specific target??

Yes, but not right out of the box.  It will take some tweaking, but I've done
it recently for Xscale and some other embedded targets (with no target OS -
just bare metal underneath).

> Please let me know whether gcj support MIPS or StrongArm target or not.
>
> If gcj supports them, how can I do?

Ok, if you're ready to experiment....

* start with GCC from the trunk of the GCC development tree.  3.0 is known to
be broken for many embedded targets.  Also, we can fix things as they are
discovered in the trunk.

* let's start with StrongArm.  gcc/configure.in says:

  strongarm-*-elf)
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
    if [ x${is_cross_compiler} != xno ] ; then
           target_configdirs="${target_configdirs} target-bsp target-cygmon"
    fi
    ;;

   replace the "${libgcj}" above with "target-libffi target-boehm-gc".  We're
going to first build a system with no thread, GC, or interpreter support, but
should run code on a StrongArm simulator.  Once this is working we can add
features.

* make sure you have a recent binutils configured, built and installed for
cross StrongArm support.  make sure it was configured
with --program-prefix=strongarm-elf- and put it on your path so the compiler
configury can find it.

* configure GCC with "--target=strongarm-elf --program-prefix=strongarm-elf-"
and build it.

Let us know how this works out...

AG




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]