annotating generated code with source and bytecode info
Doug Simon
doug.simon at oracle.com
Thu May 23 14:41:19 PDT 2013
Hi Tom,
On May 23, 2013, at 6:55 PM, "Deneau, Tom" <tom.deneau at amd.com> wrote:
>
> We would like to be able to annotate our HSAIL code generation (using comments)
> to get something like the annotations that are seen in the AMD64 disassembly. (as shown below)
The comments in your example are automatically generated by HotSpot's disassembler.
I'm am making a push right now that connects comments added via TargetMethodAssembler.blockComment() to the output of the disassembler. Once you have pulled changeset d552919fbb05 (which should be in the OpenJDK repo within the next hour) you can see it in action as follows (code comments are only supported in non-product builds):
% mx build fastdebug
% mx --fastdebug vm -XX:CompileCommand=print,*Object.toString
The line " ;; [stack overflow check]" comment in the output is produced by AMD64HotSpotBackend.java:90:
tasm.blockComment("[stack overflow check]");
-Doug
More information about the graal-dev
mailing list