<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05.11.2012 17:15, Michael Meeks
wrote:<br>
</div>
<blockquote cite="mid:1352132145.13816.34.camel@linux-d2lh.site"
type="cite">
<pre wrap=""> Why do I extensively use that option, though I'm not a packager:
* I like to run the code the end-user runs - warts and all.
* I like to be able to profile accurately without re-building
everything (cf. above)
* Having no symbols / debug-info is rather unhelpful for both
debugging, and profiling though perhaps it's a reasonable
default for size reasons</pre>
</blockquote>
<br>
<div class="moz-cite-prefix">On 05.11.2012 18:06, Norbert Thiebaud
wrote:<br>
</div>
<blockquote
cite="mid:CAFWMYEHf82JvgdmWiYJ9OtPVDv8_KoCDNCw7Kp96_tEPQbtD_w@mail.gmail.com"
type="cite">
<pre wrap="">actually that is platform and even sometime source dependent.
which makes global level carpet bombing using CFLAGS/CXXFLAGS/LDFLAGS
a not necessarily appealing option.
</pre>
</blockquote>
<br>
Thank you both for this justfication, <br>
which i've shamelsellsy stolen for the commit message ;-)<br>
<br>
<div class="moz-cite-prefix">On 05.11.2012 18:10, Michael Stahl
wrote:<br>
</div>
<blockquote cite="mid:k78rtd$3pg$1@ger.gmane.org" type="cite">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">Note that what the end user runs is -O2 rather than -Os IIUC.
</pre>
</blockquote>
<pre wrap="">yes...and no. both are true actually:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>[0] ms@bastet:<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>master > git grep -- "-O2" solenv/gbuild<span class="moz-txt-tag">/</span></i> | wc -l
<span class="moz-txt-citetags">> </span>18
<span class="moz-txt-citetags">> </span>[0] ms@bastet:<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>master > git grep -- "-Os" solenv/gbuild<span class="moz-txt-tag">/</span></i> | wc -l
<span class="moz-txt-citetags">> </span>10
<span class="moz-txt-citetags">> </span>[0] ms@bastet:<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>master > git grep -- "-O " solenv/gbuild/platform<span class="moz-txt-tag">/</span></i> | wc -l
<span class="moz-txt-citetags">> </span>2
</pre>
</blockquote>
<pre wrap="">so if you want to do profiling you simply have to look up which one your
particular architecture uses first to get meaningful numbers.</pre>
</blockquote>
No you shouldn't! That what the build systems are for:<br>
<br>
<a class="moz-txt-link-freetext" href="https://gerrit.libreoffice.org/#/c/975/">https://gerrit.libreoffice.org/#/c/975/</a><br>
<br>
Regards<br>
David<br>
</body>
</html>