RFC: JamVM force interpreter -marm on ARM Linux.
Xerxes Rånby
xerxes at zafena.se
Fri Mar 11 06:31:25 PST 2011
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!
Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jamvm-force-interpreter-marm.patch
Type: text/x-patch
Size: 1095 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110311/5b8d5200/jamvm-force-interpreter-marm.patch
More information about the distro-pkg-dev
mailing list