<div dir="ltr"><div>No, nothing fancy. It's just a nofib program.</div><div> </div><div>I am seeing the .size directives in the .s files. And objdump -S gives output like this:</div><div> </div><div>0000000000000368 <c2hw_info>:<br>
368: 48 83 e3 07 and $0x7,%rbx<br> 36c: 48 83 fb 02 cmp $0x2,%rbx<br> 370: 0f 83 96 00 00 00 jae 40c <c2hA_info+0x5c><br> 376: 48 8b 45 08 mov 0x8(%rbp),%rax</div><div>
...</div><div> </div><div>so it's just perf that's going awry? </div><div> </div><div>... investigating perf ...</div><div> </div><div>This might be my issue:</div><div> </div><div><a href="http://us.generation-nt.com/answer/tip-perf-urgent-perf-symbols-handle-proc-sys-kernel-kptr-restrict-help-203499422.html">http://us.generation-nt.com/answer/tip-perf-urgent-perf-symbols-handle-proc-sys-kernel-kptr-restrict-help-203499422.html</a></div>
<div> </div><div>Now I just have to decode all of that!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 6:48 PM, Johan Tibell <span dir="ltr"><<a href="mailto:johan.tibell@gmail.com" target="_blank">johan.tibell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Feb 15, 2013 at 10:24 AM, Nicolas Frisby <span dir="ltr"><<a href="mailto:nicolas.frisby@gmail.com" target="_blank">nicolas.frisby@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr"><div>I'm not passing any flags related to code generation, I don't think.</div><div> </div><div>$HC -H64m -O -Rghc-timing -package array -H32m -hisuf hi -O1 -rtsopts -c Main.hs -o Main.o</div><div>
</div>
<div>So that'd just be the native code generator, right?.</div><div> </div><div>$ uname -a<br>Linux cam-05-unx 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</div><div> </div>
<div>Is there a objdump-ish way to directly look for these .size directives?</div><div> </div><div>Thanks Johan.</div></div></blockquote><div><br></div></div><div>If you tell GHC to keep all temporary file you could look in the .S files for the .size directive. It could be that I missed some place where we ought to put a .size directive. Are you doing dynamic linking? </div>
</div>
</blockquote></div><br></div>