<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can i set the optimization level for a file? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384780#M2196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the following #pragma using GCC ARM in Atmel Studio and I am hoping to re-use the technique with my KDS development:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;//------&amp;nbsp; Set optimization level for this module&amp;nbsp; ------------------------&lt;/P&gt;&lt;P&gt;//------&amp;nbsp; Overrides global settings&amp;nbsp; -------------------------------------&lt;/P&gt;&lt;P&gt;//------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;//Values are 0 for no optimization, to 3 for most. "s" is for size&lt;/P&gt;&lt;P&gt;#pragma GCC optimize ("Os")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more than one way to express this to GCC, but this is the form I have been using successfully for some time now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW - I am looking for feedback as to the difference between the "Cross ARM Compiler" in KDS and the "GNU ARM Compiler" - &lt;A href="https://community.nxp.com/thread/338409"&gt;Difference between the "Cross ARM C++ Compiler" and the "GNU ARM C++ Compiler"?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 19:44:58 GMT</pubDate>
    <dc:creator>tharonhall</dc:creator>
    <dc:date>2015-01-08T19:44:58Z</dc:date>
    <item>
      <title>how can i set the optimization level for a file?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384777#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;In the KDS, i can set the project optimization level as -O0&amp;nbsp; -O1 -O2 or - O3.&lt;/P&gt;&lt;P&gt;But i want to modify the optimization level for one file in this project, i right click the file, select properties-&amp;gt;c/c++ build-&amp;gt;setting, but no optimization level here. &lt;/P&gt;&lt;P&gt;How an i set the optimization for a file, is it already support in KDS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jan 2015 08:07:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384777#M2193</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-01-04T08:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can i set the optimization level for a file?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384778#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matherine,&lt;/P&gt;&lt;P&gt;use the 'other compiler flags':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48853i29854670A55E82CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jan 2015 09:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384778#M2194</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-01-04T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can i set the optimization level for a file?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384779#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, It works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 04:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384779#M2195</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-01-05T04:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can i set the optimization level for a file?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384780#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the following #pragma using GCC ARM in Atmel Studio and I am hoping to re-use the technique with my KDS development:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;//------&amp;nbsp; Set optimization level for this module&amp;nbsp; ------------------------&lt;/P&gt;&lt;P&gt;//------&amp;nbsp; Overrides global settings&amp;nbsp; -------------------------------------&lt;/P&gt;&lt;P&gt;//------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;//Values are 0 for no optimization, to 3 for most. "s" is for size&lt;/P&gt;&lt;P&gt;#pragma GCC optimize ("Os")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more than one way to express this to GCC, but this is the form I have been using successfully for some time now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW - I am looking for feedback as to the difference between the "Cross ARM Compiler" in KDS and the "GNU ARM Compiler" - &lt;A href="https://community.nxp.com/thread/338409"&gt;Difference between the "Cross ARM C++ Compiler" and the "GNU ARM C++ Compiler"?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 19:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/how-can-i-set-the-optimization-level-for-a-file/m-p/384780#M2196</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-01-08T19:44:58Z</dc:date>
    </item>
  </channel>
</rss>

