<?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 Some lines of code not assembling in release mode. in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596630#M31871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AndreiS on Thu Mar 05 12:48:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am using the free edition (v7.5.0 build254) and my baby steps at learning this stuff is working well when I do a debug build.&amp;nbsp; However, when I change to release mode the behavior of my code change (verified with scope) and in the disassembler I can see lines of code missing (see attached).&amp;nbsp; For example the following two lines of code are only compiled once, but used several times:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i = 2500;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(i) i--;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in the attached screenshot lines 86, 92, and 99 (my "delays") are not in the disassembly.&amp;nbsp; They are present in a debug build.&amp;nbsp; Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:35:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:35:50Z</dc:date>
    <item>
      <title>Some lines of code not assembling in release mode.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596630#M31871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AndreiS on Thu Mar 05 12:48:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am using the free edition (v7.5.0 build254) and my baby steps at learning this stuff is working well when I do a debug build.&amp;nbsp; However, when I change to release mode the behavior of my code change (verified with scope) and in the disassembler I can see lines of code missing (see attached).&amp;nbsp; For example the following two lines of code are only compiled once, but used several times:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i = 2500;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(i) i--;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, in the attached screenshot lines 86, 92, and 99 (my "delays") are not in the disassembly.&amp;nbsp; They are present in a debug build.&amp;nbsp; Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:35:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596630#M31871</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Some lines of code not assembling in release mode.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596631#M31872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 05 13:12:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Missing 'volatile' keyword probably...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fcompiler-optimization" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/compiler-optimization&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ Release build typically compiles with -Os]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:35:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596631#M31872</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Some lines of code not assembling in release mode.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596632#M31873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AndreiS on Thu Mar 05 14:39:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&amp;nbsp; Off to do some studying as its apparent I didn't fully understand how to use volatile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Some-lines-of-code-not-assembling-in-release-mode/m-p/596632#M31873</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:35:52Z</dc:date>
    </item>
  </channel>
</rss>

