Great question! I've been wondering the same, and I've found great
answers here.

But here is how I was able to get some of the assembly (in normal JVM,
not debug), but for small portions of code - for example this is how I
was able to see the point-in-poly algorithm.

Basically I put a tight loop around the computation, then attach with
debugger and almost 99% of the time it would be in the generated code.

I'm familiar with assembly language, although not very familiar with
the JVM calling conventions, register usage, etc. Still you can grasp
enough from there.

I'm also suprised how well JVM does (ahem, "java -server", not "java -
client").


On Jul 15, 8:39 pm, Bradbev <brad.beveri...@gmail.com> wrote:
> I see lots of discussion on this list about Clojure performance & how
> to get it to Java speed.  I am also interested in the next steps that
> happen, how does the JVM convert byte code down to machine code and
> how does one examine that?
> The profiling tools I use for C code let me look at what the compiler
> has done with my C/C++ code & where the machine is running slow (cache
> misses, pipeline stalls, etc).
> JVM apps obviously have another layer of indirection, the first layer
> is the quality of the byte code that has been generated, and then how
> hotspot compiles that into machine code.
> What tools are out there that let you examine the bytecode & JVM
> machine code output?  It would also be really nice if there were tools
> that told you why the JVM did or did not manage to optimize a block of
> code.
>
> I'm just curious here really, but it does seem like there are many
> knowledgeable people on this list that might be able to offer some
> tips.
>
> Thanks,
> Brad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to