Can't you set a break point somewhere and then use gdb's 'disassemble' command?<div><br></div><div>Robby<br><br>On Monday, February 25, 2013, James Swaine wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi Haiwei, </div><div><br></div><div>AFAIK there isn't any way to see the actual instructions that the JIT is generating. Why do you think it would be helpful in this case? </div>
<div><br></div><div>It may be helpful to use raco decompile, however -- that allows you to see what the bytecode version of your program looks like (which is what is actually being fed to the JIT).</div><div>
<br></div><div>-James</div><div><br></div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Message: 6<br>
Date: Mon, 25 Feb 2013 17:53:34 +0800<br>
From: Haiwei Zhou <<a href="javascript:_e({}, 'cvml', 'highfly22@gmail.com');" target="_blank">highfly22@gmail.com</a>><br>
To: Danny Yoo <<a href="javascript:_e({}, 'cvml', 'dyoo@hashcollision.org');" target="_blank">dyoo@hashcollision.org</a>><br>
Cc: users <<a href="javascript:_e({}, 'cvml', 'users@racket-lang.org');" target="_blank">users@racket-lang.org</a>><br>
Subject: Re: [racket] The performance of fannkuch-redux<br>
Message-ID:<br>
<CABLXuO9nJAUa=Xn7779377NPnoQX6Ze3Tdkf6bvF=<a href="javascript:_e({}, 'cvml', 'sta%2BbG6wQ@mail.gmail.com');" target="_blank">sta+bG6wQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Updated a parallel version to <a href="https://github.com/highfly22/fannkuch-redux" target="_blank">https://github.com/highfly22/fannkuch-redux</a><br>
It takes about 1m50s in the four cores PC, while the script in the shoutout<br>
takes about 4m30s. It looks like the task division is not perfect.<br>
<br>
I am just curious on the native implement of JIT. How to dump assemble code<br>
after JIT?<br>
<br>
When I try to define count-flips as a macro, racket complains "to many<br>
forms"? What does that mean?<br>
<br>
Thanks,<br>
Haiwei<br>
<br>
<br>
On 24 February 2013 11:03, Danny Yoo <<a href="javascript:_e({}, 'cvml', 'dyoo@hashcollision.org');" target="_blank">dyoo@hashcollision.org</a>> wrote:<br>
<br>
> >> > It's amazing fast. If it is only 6 times slower than C version. If<br>
> >> > parallelizing the time consuming operations, it would be 2x slower<br>
> than<br>
> >> > C<br>
> >> > version in the four cores CPU.<br>
> >><br>
> >><br>
> >> Do you mean the version you've written, or the one in the Racket<br>
> >> benchmark suite?<br>
> ><br>
> > It's the one in the benchmark suite.<br>
><br>
><br>
> What does the code look like if you add the parallelizing? Can you<br>
> show us? Thanks!<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.racket-lang.org/users/archive/attachments/20130225/8e591afb/attachment-0001.html" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20130225/8e591afb/attachment-0001.html</a>><br>
<br>
------------------------------<br></blockquote></div></div></div>
</blockquote></div>