<?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>CodeWarrior for MCUのトピックSetting the optimization on a single source file.</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205569#M7909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I would like to find out how to set the optimization of a single source file in my project for speed and leave the rest the same as it currently stands (size).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have searched through this forum and help files and already spend hours on this.&amp;nbsp; Searched all the settings in the IDE etc.&amp;nbsp; I'm dying here &lt;SPAN aria-label="Wink" class="emoticon-inline emoticon_wink" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It's for an HCS12XE device and&amp;nbsp;Codewarrior version 4.6.&amp;nbsp; Hope this is enough info.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then, off the topic, my email address changed a few years back, but are still forwarded to my new address.&amp;nbsp; One day soon, the alias will be killed and then I won't be able to log into this forum anymore.&amp;nbsp; Does anyone know how to change this email address?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance for all you great answers,&lt;/DIV&gt;&lt;DIV&gt;MTBer&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 19:16:25 GMT</pubDate>
    <dc:creator>MTBer</dc:creator>
    <dc:date>2008-11-26T19:16:25Z</dc:date>
    <item>
      <title>Setting the optimization on a single source file.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205569#M7909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I would like to find out how to set the optimization of a single source file in my project for speed and leave the rest the same as it currently stands (size).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have searched through this forum and help files and already spend hours on this.&amp;nbsp; Searched all the settings in the IDE etc.&amp;nbsp; I'm dying here &lt;SPAN aria-label="Wink" class="emoticon-inline emoticon_wink" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It's for an HCS12XE device and&amp;nbsp;Codewarrior version 4.6.&amp;nbsp; Hope this is enough info.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then, off the topic, my email address changed a few years back, but are still forwarded to my new address.&amp;nbsp; One day soon, the alias will be killed and then I won't be able to log into this forum anymore.&amp;nbsp; Does anyone know how to change this email address?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance for all you great answers,&lt;/DIV&gt;&lt;DIV&gt;MTBer&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 19:16:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205569#M7909</guid>
      <dc:creator>MTBer</dc:creator>
      <dc:date>2008-11-26T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the optimization on a single source file.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205570#M7910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In order to activate a compiler option for a single module you can use the pragma OPTION.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Put following line before the implementation of the first function in the module&lt;/DIV&gt;&lt;DIV&gt;#pragma OPTION ADD OptimizeTime "-Ot"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Place following line at the end of the module&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#pragma OPTION DEL OptimizeTime&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In order to get your email address changed you need to submit a Service Request with Categorie = Web and Topic = Email Address Change&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 20:24:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205570#M7910</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-11-26T20:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the optimization on a single source file.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205571#M7911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi CrasyCat,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot for your response.&amp;nbsp; I have tried it, but unfortunately my code jump from 10k to 40k for this source file and now I am struggling to make it fit.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This will only work down to a function level or can I use it inside a function as well?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again,&lt;/DIV&gt;&lt;DIV&gt;MTBer&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 21:38:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205571#M7911</guid>
      <dc:creator>MTBer</dc:creator>
      <dc:date>2008-11-26T21:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the optimization on a single source file.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205572#M7912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Well this can work for single functions as well.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just enclose the function (or functions) you want to optimize for execution time between the 2 pragmas.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Option is activated with pragma OPTION ADD and desactivated with pragma OPTION DEL.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So you can decide whether you want to use it for 1 function, a set of functions or the whole module :smileywink:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 21:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-the-optimization-on-a-single-source-file/m-p/205572#M7912</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-11-26T21:55:13Z</dc:date>
    </item>
  </channel>
</rss>

