RFC: JamVM force interpreter -marm on ARM Linux.
Xerxes Rånby
xerxes at zafena.se
Sat Mar 12 16:05:01 PST 2011
On 2011-03-11 15:31, Xerxes Rånby wrote:
> On 2011-03-11 13:46, Robert Lougher wrote:
>>>> On 11.03.2011 12:52, Xerxes Rånby wrote:
>>>>> Hi
>>>>>
>>>>> JamVM currently fail to run on ARM Linux systems where gcc by default optimize for Thumb2.
>>>>> This can be fixed by overriding the JamVM CFLAGS to skip thumb by enforcing the use of -marm -g -O2 .
>> I've been unwell for a few days, so apologies for my recent silence.
>>
>> I believe it's only the interpreter which needs to be built as ARM.
>>
>> There is already a need to set a flag for the interpreter
>> (interp_cflags) so this might work:
>>
>> arm*-*-linux*) host_cpu=arm host_os=linux interp_cflags=-marm ;;
>>
>> The place where interp_cflags is currently set (line 180,
>> enable_int_inlining) will also need to be changed to:
>>
>> interp_cflags="$interp_cflags -fno-reorder-blocks"
>>
>>
>> Assuming it is only the interpreter that needs ARM, this should work.
>> However, I'm unable to test this until tonight at the earliest.
>>
>> Rob.
>
> I have attached a new patch that implements this using Roberts instructions.
> It works nicely on my setup!
>
Hi
I have committed your implementation to
http://icedtea.classpath.org/hg/icedtea6/rev/0ca79255e13e
Ok to push to Icedtea6-1.10 release branch?
Cheers
Xerxes
More information about the distro-pkg-dev
mailing list