<?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: Compiler optimization no longer works for Eclipse IDE in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Compiler-optimization-no-longer-works-for-Eclipse-IDE/m-p/448614#M3239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please changed it to Size and Optimization Level 1, then rebuild the project. Then compare its output S-record file and MAP file with your colleague's? Since he is also using Size and Optimization Level 1, they should be same.&amp;nbsp; If not, what's the difference between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 12:14:38 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2015-04-30T12:14:38Z</dc:date>
    <item>
      <title>Compiler optimization no longer works for Eclipse IDE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Compiler-optimization-no-longer-works-for-Eclipse-IDE/m-p/448613#M3238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Codewarrior Eclipse IDE version 10.6.&amp;nbsp; Programming a 56f8367 with the USB Tap.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to a legacy code issue, I have a soft limit on the number of blocks I can use for programming space.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We recently just passed that mark. Now, I am sure there are many things I can do in the code to make it more efficient, but I tried to play around with the compiler optimization settings to see how much this would buy me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the Optimization menu, I changed it to Size and Optimization Level 1. This dramatically decreased the size of the code and would be a great help. I was also able to load and test this and successful tested a large set of the functionality.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I pressed my luck and increased the optimization level to 4. When I did this, the program no longer ran. It would compile, and I could load it into the unit, but I would immediately crash. It looks like it crashed on a long division, if that helps at all.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway, I decided that I would just back off back down to Level 1 as it would have been more than enough. However, THAT stopped working too. It would crash in the same way. I tried programming a different unit, I even tried a different project (the same code, with just a few different #defines) and none of them work either. Even if I turn Optimization Level to "Off" and set it to "size" my program still crashes in the same way. The only way I can get it to work now is to set it to "Speed" and "Off."&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a repository, so I have another guy who can check out the same exact version of code I am working with, and he is able to compile with Optimization Level 1 and Size.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like setting it to Level 4 broke my ability to optimize it at all. . .I can even set it to Size at all!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if there is something that Cleaning the project does not actually clean where something about the optimization is getting stored which is why I am no longer able to optimize successfully even though I was able to do so before.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 21:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Compiler-optimization-no-longer-works-for-Eclipse-IDE/m-p/448613#M3238</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2015-04-27T21:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler optimization no longer works for Eclipse IDE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Compiler-optimization-no-longer-works-for-Eclipse-IDE/m-p/448614#M3239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please changed it to Size and Optimization Level 1, then rebuild the project. Then compare its output S-record file and MAP file with your colleague's? Since he is also using Size and Optimization Level 1, they should be same.&amp;nbsp; If not, what's the difference between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Compiler-optimization-no-longer-works-for-Eclipse-IDE/m-p/448614#M3239</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2015-04-30T12:14:38Z</dc:date>
    </item>
  </channel>
</rss>

