On the 0x3B1 day of Apache Harmony Pamela Yuan wrote: > Pavel, > I know how to dump HIR and LIR. I want to know how to get the > native code of a method.
you can run DRLVM under debugger, stop on a breakpoint after generation of your code, read the address, where the code was dumped (in logs), then disassemble the piece of memory in debugger. Maybe you find it useful..., to breakpoint on the first instruction of the generated method just change "break-" to "break+" in the corresponding .emconf file. It will insert the int3 instruction to the very beginning of the generated code. (Use filters to filter out methods that you do not want to stop on) > Thanks > > 2007/12/19, Pavel Ozhdikhin <[EMAIL PROTECTED]>: > > Pamela, > > > > If you use -XX:jit.arg.log=irdump you'll get dumps of the IR before and > > after every compilation step, including the emitter. It's not exactly > > assembler code, but you'll find it helpful. > > > > Here you can find more about JIT logging options: > > http://harmony.apache.org/subcomponents/drlvm/JIT_PMF.html#Logging_System > > > > Thanks, > > Pavel > > > > > > On 12/19/07, Pamela Yuan <[EMAIL PROTECTED]> wrote: > > > > > > Hi,all > > > In the "emitter"pass, when Jitrino resolve RuntimeInfo,it will > > > generate some dynamic code.If I want to see the assembly code in the > > > chunk, what can I do? > > > > > > -- Egor Pasko
