<?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>MPC5xxx中的主题 Re: Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617436#M5293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this behavior is strange. Could you please share your project? If it not possible for you to share you project in public, please submit a new case for NXP support and I will answer you. But without your project I am not able to tell you what is wrong.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329745?sr=search&amp;amp;searchId=3ae873a3-b79a-4f29-9601-2a0fcf3bd94a&amp;amp;searchIndex=0"&gt;https://community.nxp.com/docs/DOC-329745?sr=search&amp;amp;searchId=3ae873a3-b79a-4f29-9601-2a0fcf3bd94a&amp;amp;searchIndex=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 07:07:23 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2016-11-02T07:07:23Z</dc:date>
    <item>
      <title>Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617433#M5290</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;Our platform is MPC5604 chip. We use codewarrior IDE(Version is "5.9.0") to build our project. In build process, we found a problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;&lt;EM&gt;Problem description&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The code is shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166941_166941.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122436iDA6B78E5B55FA075/image-size/large?v=v2&amp;amp;px=999" role="button" title="166941_166941.png" alt="166941_166941.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6460i098506A73F3763DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fig.1&amp;nbsp;&amp;nbsp;&amp;nbsp;operating&amp;nbsp;result&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the code, variable named "local_A" is always equal to 1,&amp;nbsp;the PC pointer can't jump into the branch.&lt;/P&gt;&lt;P&gt;But actually the judgement &amp;nbsp;condition is false, the PC pointer is still jump into the branch. &amp;nbsp;you can see the result in Fig.1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2. Problem analysis&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We analysis the assemble code and &amp;nbsp;found no error with the code. so we analysis the build&amp;nbsp;&amp;nbsp;options.&lt;/P&gt;&lt;P&gt;at last, we found there is a parameter can lead to this problem. The parameter is "Global Optimization Settings".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166942_166942.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122437i2660D32B2CD0A57B/image-size/large?v=v2&amp;amp;px=999" role="button" title="166942_166942.png" alt="166942_166942.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6593i1298DC315E1D4943/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Fig.2 &amp;nbsp;Faster build option&lt;/P&gt;&lt;P&gt;If this&amp;nbsp;Global Optimization Settings is set as Fig.2 or optimization level is less than 4, the problem will reappear.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166956_166956.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122438i7EFDBB13EB6AA84C/image-size/large?v=v2&amp;amp;px=999" role="button" title="166956_166956.png" alt="166956_166956.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6684iDAC889ED7408C028/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Fig.3&amp;nbsp; smaller code size&amp;nbsp;build option&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only&amp;nbsp;t&lt;SPAN&gt;his&amp;nbsp;Global Optimization Settings is set as Fig.3. The problem &amp;nbsp;will never happen.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;3.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;Question&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1)we don't know the mechanism. If we configure the optimization setting as Level4, does it lead other new problems?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) why other levels lead this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 07:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617433#M5290</guid>
      <dc:creator>朱先生</dc:creator>
      <dc:date>2016-11-01T07:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617434#M5291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please share the code of the function, where variable local_A is declared or defined? I also do not see any operations with this variable (something like increment or another mathematical operation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 11:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617434#M5291</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-11-01T11:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617435#M5292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;Martin:&lt;/P&gt;&lt;P&gt;The variable local_A is declared as global variable. The code is below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6687iA0F6454F9E4D6AAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is no&amp;nbsp;modification about this variable in our code. so the value of this variable is always&amp;nbsp;initial &amp;nbsp;value "1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug mode, the value of this variable is actually "1".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6820iDDCD0081B2BA93A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bryce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 23:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617435#M5292</guid>
      <dc:creator>朱先生</dc:creator>
      <dc:date>2016-11-01T23:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617436#M5293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this behavior is strange. Could you please share your project? If it not possible for you to share you project in public, please submit a new case for NXP support and I will answer you. But without your project I am not able to tell you what is wrong.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329745?sr=search&amp;amp;searchId=3ae873a3-b79a-4f29-9601-2a0fcf3bd94a&amp;amp;searchIndex=0"&gt;https://community.nxp.com/docs/DOC-329745?sr=search&amp;amp;searchId=3ae873a3-b79a-4f29-9601-2a0fcf3bd94a&amp;amp;searchIndex=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617436#M5293</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-11-02T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Command-Line Options for Global Optimization Settings for MPC5604 chip</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617437#M5294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a new case. shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6348i2B99525D6F1A64DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 07:28:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Command-Line-Options-for-Global-Optimization-Settings-for/m-p/617437#M5294</guid>
      <dc:creator>朱先生</dc:creator>
      <dc:date>2016-11-03T07:28:01Z</dc:date>
    </item>
  </channel>
</rss>

