<?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 Variable is not getting assigned to 0. in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798848#M6991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on MC9S08QD4 with Code Warrior v6.3. When we assign 0 to a variable it is not getting assigned to 0 and it works with the previous value sometimes. Please share your feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 07:23:38 GMT</pubDate>
    <dc:creator>venkateshgv</dc:creator>
    <dc:date>2018-11-26T07:23:38Z</dc:date>
    <item>
      <title>Variable is not getting assigned to 0.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798848#M6991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on MC9S08QD4 with Code Warrior v6.3. When we assign 0 to a variable it is not getting assigned to 0 and it works with the previous value sometimes. Please share your feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 07:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798848#M6991</guid>
      <dc:creator>venkateshgv</dc:creator>
      <dc:date>2018-11-26T07:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not getting assigned to 0.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798849#M6992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wonder the problem is because of the optimization.&lt;/P&gt;&lt;P&gt;I suggest you cast the variable as "volatile" then try again. for example.&lt;/P&gt;&lt;P&gt;volatile int myval;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798849#M6992</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-11-27T06:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not getting assigned to 0.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798850#M6993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share a reproducible example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, if you have something like:&lt;/P&gt;&lt;P&gt;int i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i = 10;&lt;/P&gt;&lt;P&gt;i = 0;&lt;/P&gt;&lt;P&gt;i = 20;&lt;/P&gt;&lt;P&gt;then the compiler will be able to optimize this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Variable-is-not-getting-assigned-to-0/m-p/798850#M6993</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-11-27T06:22:44Z</dc:date>
    </item>
  </channel>
</rss>

