<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I was thinking (and have been) building the emulator with -O3 as I understand from what I can gather from that -O3 prioritizes code speed over code size, and the emulator is both small already and speed-hungry….but I see there is also -Ofast in clang-3.8 (which is what my MacPro is building it with)…</div><div class=""><br class=""></div><div class="">This website reference says -Os and -O2 are identical:</div><div class=""><br class=""></div><div class="">&lt;<a href="http://stackoverflow.com/questions/15548023/clang-optimization-levels" class="">http://stackoverflow.com/questions/15548023/clang-optimization-levels</a>&gt;</div><div class=""><br class=""></div><div class="">Haven’t yet benchmarked the differences between O2 and O3 within it, tho.</div><div class=""><br class=""></div><div class="">Of course, Jeremy would know all...</div><div class=""><br class=""></div><div class="">K</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 5, 2016, at 5:32 PM, Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com" class="">allbery.b@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Sep 5, 2016 at 8:10 PM, Fred Wright <span dir="ltr" class="">&lt;<a href="mailto:fw@fwright.net" target="_blank" class="">fw@fwright.net</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1m0" class="a3s aXjCH m156fcd5103e18cb3">But when they switched to Intel, they also switched<br class="">
to -O2.&nbsp; This allowed them to inflate the performance benefit of the<br class="">
architecture switch. :-)</div></blockquote></div><br class="">...as long as -O2 worked. Experience from FreeBSD and from early MacPorts experiments with -O2 is that it took -O2 a long time to actually generate correct code in a majority of cases.</div><div class="gmail_extra">That said, it might be worth looking at again --- but, -O2 reportedly still causes occasional problems for some programs, so be ready to bail back to -Os.</div><div class="gmail_extra"><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">brandon s allbery kf8nh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sine nomine associates</div><div class=""><a href="mailto:allbery.b@gmail.com" target="_blank" class="">allbery.b@gmail.com</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:ballbery@sinenomine.net" target="_blank" class="">ballbery@sinenomine.net</a></div><div class="">unix, openafs, kerberos, infrastructure, xmonad &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://sinenomine.net/" target="_blank" class="">http://sinenomine.net</a></div></div></div>
</div></div>
_______________________________________________<br class="">macports-dev mailing list<br class=""><a href="mailto:macports-dev@lists.macosforge.org" class="">macports-dev@lists.macosforge.org</a><br class="">https://lists.macosforge.org/mailman/listinfo/macports-dev<br class=""></div></blockquote></div><br class=""></body></html>