Porting libgcj...
scottb
scottb@netwinder.org
Mon Aug 9 13:23:00 GMT 1999
Tom Tromey wrote:
>> >>>>> "Scott" == scottb <scottb@netwinder.org> writes:
>> Scott> I think I have found the problem (at least for this case). It
> Scott> is the WORDS_TO_DOUBLE() macro in javaop.h. The ARM has a
> Scott> funny floating point memory layout for doubles.
>> Interesting.
>> If you can think of a way to test for this by compiling (and not
> running) a test program, then we could do it in configure.in. You
> can't run a test program because of Canadian crosses.
>
Most ARM CPU's have no floating point unit, and thus require a floating
point emulator. Only the ARM 7500FE has a floating point core, and even
it is not complete. All the ARM emulators the 7500FE chip use the same
floating point format, so something like this should work.
int main(int argc, char **argv)
{
#if defined(arm) || defined(__arm) || defined(__arm__)
/* do nothing
#else
#error "Not an ARM compiler!"
#endif
}
If the compile fails, then it is not an ARM system.
What's a Canadian cross? Be nice cause I'm Canadian :).
Scott
More information about the Java
mailing list