Boost C++ Libraries: Ticket #2773: Sun toolset uses -fast by default https://svn.boost.org/trac10/ticket/2773 <p> With --toolset=sun, -fast is enabled by default. </p> <p> The -fast option of the Sun CC enables optimized codegen for all the hardware features, which are available for the CPU, where the CC process is currently running. </p> <p> For example if you compile with -fast on an <a class="missing wiki">Solaris/Opteron</a> systems, you code very likely will contain 3dnow-instruction. If you want to share the binaries with <a class="missing wiki">Solaris/Intel</a>-Xeon-64-bit systems you have a problem. </p> <p> Thus, I suggest a default optimization level of '-O' for the Sun CC (e.g. with --toolset=sun). Or '-xOsomething' if you will. </p> <p> The situation is comparable to using -O or -O2 with gcc, and not -march=native. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2773 Trac 1.4.3 Steven Watanabe Wed, 18 Feb 2009 01:14:03 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2773#comment:1 https://svn.boost.org/trac10/ticket/2773#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket Vladimir Prus Wed, 18 Feb 2009 07:03:27 GMT <link>https://svn.boost.org/trac10/ticket/2773#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2773#comment:2</guid> <description> <p> I don't really know what possible values of -xOsomething are there, and which one is considered the most reasonable value when optimizing for speed. If you tell me that, I can make the change. Thanks. </p> </description> <category>Ticket</category> </item> <item> <author>g_sauthoff@…</author> <pubDate>Wed, 18 Feb 2009 12:26:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2773#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2773#comment:3</guid> <description> <p> Well, -xO4 is reasonable (switches automatic fn inlining on); -xO5 is reasonable as well, but it increases the compile time a bit. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Wed, 18 Feb 2009 12:49:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2773#comment:4 https://svn.boost.org/trac10/ticket/2773#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/51308" title="Do not use -fast, since it causes the code to be generated for the ...">[51308]</a>) Do not use -fast, since it causes the code to be generated for the processor the compiler is running on. Use -xO4 instead. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2773" title="#2773: Bugs: Sun toolset uses -fast by default (closed: fixed)">#2773</a>. </p> Ticket