<?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 HC08: Not allocated variables in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143146#M3002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've some problems while debugging code with CodeWarrior :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some of my variables are indicated as "not allocated", and appear in grey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then my code doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anybody here who knows how to solve this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:05 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2007 19:03:49 GMT</pubDate>
    <dc:creator>jdiogon</dc:creator>
    <dc:date>2007-01-18T19:03:49Z</dc:date>
    <item>
      <title>HC08: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143146#M3002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've some problems while debugging code with CodeWarrior :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some of my variables are indicated as "not allocated", and appear in grey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then my code doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anybody here who knows how to solve this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:05 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 19:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143146#M3002</guid>
      <dc:creator>jdiogon</dc:creator>
      <dc:date>2007-01-18T19:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143147#M3003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Your variable appears in Grey because it's optimized, so if you don't want optimization only for this variable, you have to declare it as "volatile".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Emmanuel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 19:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143147#M3003</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2007-01-18T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143148#M3004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Is there any solution to avoid this for all code ?&lt;BR /&gt;I'd like to be able to access all my variables in the debugger easily.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 19:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143148#M3004</guid>
      <dc:creator>jdiogon</dc:creator>
      <dc:date>2007-01-18T19:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143149#M3005</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;&amp;nbsp; There is no way to disable all optimization in the compiler.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; The compiler will always optimize access to variables with local scope.&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>Thu, 18 Jan 2007 19:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143149#M3005</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-01-18T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143150#M3006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you all !&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 19:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143150#M3006</guid>
      <dc:creator>jdiogon</dc:creator>
      <dc:date>2007-01-18T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143151#M3007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;"There is no way to disable all optimization in the compiler."&lt;BR /&gt;&lt;BR /&gt;Why not?&lt;BR /&gt;&lt;BR /&gt;- Every other compiler in the known world has this feature, including crappy freeware compilers made by hobbyists.&lt;BR /&gt;- It can't be awfully hard to implement it.&lt;BR /&gt;- Debugging optimized code is incredible annoying.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 21:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143151#M3007</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-01-19T21:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143152#M3008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;(Without knowing which processor and debugger you are using) does your debugger show you the current contents of the registers and accumulators? Usually "optimisation" just means the C-level instruction is being carried out directly in registers and accumulators.&lt;/DIV&gt;&lt;DIV&gt;When I have been faced with debugging in similar circumstances on an HCS12 processor, I have usually found I can still work out what's happening from watching the registers and accumlator. An 8-bit&amp;nbsp;variable&amp;nbsp;is usually put in ACC.B, a 16 bit in ACC.D.&amp;nbsp;A display of the compiled code in assembler also helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;An early career writing everything in assembler is never completely wasted! :smileyhappy:&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2007 01:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143152#M3008</guid>
      <dc:creator>Stephen</dc:creator>
      <dc:date>2007-01-20T01:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not allocated variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143153#M3009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm working with a HCS08.&lt;BR /&gt;&lt;BR /&gt;I'm gonna look if I can see registers in the debugger.&lt;BR /&gt;&lt;BR /&gt;Thank you again for all your answers.&lt;BR /&gt;&lt;BR /&gt;PS : Emmanuel : je pense que nous sommes tous deux français...&lt;BR /&gt;J'étudie à l'ISIMA à Clermont-Ferrand.&lt;BR /&gt;Et toi tu es d'où ? :smileywink:&lt;P&gt;Message Edited by jdiogon on &lt;SPAN class="date_text"&gt;2007-01-19&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:22 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2007 04:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC08-Not-allocated-variables/m-p/143153#M3009</guid>
      <dc:creator>jdiogon</dc:creator>
      <dc:date>2007-01-20T04:20:57Z</dc:date>
    </item>
  </channel>
</rss>

