[aarch64-port-dev ] PrintAssembly
Andrew Dinn
adinn at redhat.com
Fri Sep 6 00:35:48 PDT 2013
On 04/09/13 18:16, Andy Johnson wrote:
> Is a plugin available to support the PrintAssembly option for aarch64?
I assume you are referring to the hsdis disassembler library which is
dynamically loaded by the JVM?
The code in hotspot/src/share/tools/hsdis can be used to build
hsdis-aarch64.so so long as you point the makefile at a binutils which
knows about AArch64 code. Details of how to obtain the binutils we use
when running on x86 (with the simulator) are provided in the
README.aarch64 in the aarch64-port tree top-level. The download, build
and install steps for building the aarch64 disassembler library to run
on x86 can be viewed in script sim_compile.
If you want a native version of this library then:
i) the AArch64 Linux OS release should provide a suitable binutils but
you you should also be able to build it using the library specified in
the README.
ii) you will probably do best to cross-compile the hsdis annd binutils
code for aarch64 but I guess you could also compile on the native
platform if you are happy to wait long enough.
iii) whichever way you do the previous step you will probably need to
tweak the makefile slightly (exercise for the reader :-) as I don't
think anyone has done this yet.
regards,
Andrew Dinn
-----------
Principal Software Engineer
Red Hat UK Ltd
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parson
(USA), Charlie Peters (USA)
More information about the aarch64-port-dev
mailing list