Hotspot7 hsdis PrintAssembly Intel Syntax

后端 未结 2 506
暗喜
暗喜 2021-02-04 05:34

It annoys me every time I use -XX:+PrintAssembly with Hotspot and have to read the horrible AT&T syntax.

Is there a way to tell it to use the Intel synt

2条回答
  •  终归单人心
    2021-02-04 06:09

    I don't think there's any existent way to do this. But this is what I've found- Here is the source of hsdis. You can change the Makefile by passing -masm=intel to GCC. And if it works, from now onwards, +PrintAssembly should start outputting Intel syntax assembly.

    Here is the step by step procedure to get the source, build and finally get the hsdis-arch.so which is the one which does the disassembly work!

    I haven't tried this out myself. I wish you get this to work :)

    If nothing works, this should make you comfortable with AT&T Syntax :)

提交回复
热议问题