This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Dependencies when using gcc-generated object files in another compiler
- From: Tom Tromey <tromey at redhat dot com>
- To: "Lehner, Michael" <michaellehner at siemens dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: 19 Dec 2006 10:24:43 -0700
- Subject: Re: Dependencies when using gcc-generated object files in another compiler
- References: <1FFB5936FA09AE4ABC652E1E5C02B90201BB6C58@KHED163A.ww004.siemens.net>
- Reply-to: tromey at redhat dot com
>>>>> "Michael" == Lehner, Michael <michaellehner@siemens.com> writes:
Michael> I read something about an option for gcc to use Greenhills ABI, but I
Michael> didn't figure out how to use it and if it's really supported, does
Michael> anybody know?
I don't see anything in the documentation about this.
Michael> And our intention was even to use java for our
Michael> operating-system-development. That means we must be able to
Michael> compile it for MIPS itself and not for an specific operating
Michael> system.
This can be done -- we've done it before -- but it will require you to
do some porting work on the GC and libgcj itself.
I looked briefly at your original note...
>> > __gcj_personality_v0 from Main.o
>> > _Unwind_Resume from gnulib.a(Class.o)
>> > _Jv_Throw from gnulib.a(Class.o)
Missing libgcj's exception code somehow?
>> > __fixdfdi from gnulib.a(lt15-lang.o)
>> > __fixsfdi from gnulib.a(lt15-lang.o)
Missing libgcc?
>> > _ZN4java4util5regex7Pattern7compileEPNS_4lang6StringE from
>> gnulib.a(lt15-lang.o)
Did you remove parts of libgcj but not update the callers?
Anyway, to make this stuff work you'll have to dive into the guts a
bit. And, things could be especially problematic if your OS is
written in C++ and throws exceptions that the caller must catch. A
lot depends on the details of the GH compiler, about which I know
nothing.
Tom