<?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>CodeWarrior for MCU中的主题 Re: Wrong overlapping variables in RAM (CW HC08)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131056#M1091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello&lt;BR /&gt;&lt;BR /&gt;This should be a corner situation of an configuration issue.&lt;BR /&gt;Please submit a service request through our on-line support site to get our&lt;BR /&gt;support people take a look at that.&lt;BR /&gt;&lt;BR /&gt;CrasyCat&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2006 16:46:46 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-09-22T16:46:46Z</dc:date>
    <item>
      <title>Wrong overlapping variables in RAM (CW HC08)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131055#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Recently I found that HC08 C Compiler ovelapped a local automatic variable with a global one, causing the destroy of the global var. In order to prevent it I tried to define the local variable as static and the problem was solved. Another solution was to disable some Optimizer options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The var. definitions were:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char *Tx_ptr; // the global var.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;typedef union&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned long l;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char arr[4];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}adress_format;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;adress_format adress; // the local automatic var.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// The adress var. is overlapping *Tx_ptr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution, I found, does not satisfy me, since I haven't found the reason for the problem and the similar problem may be exist in an other place of my code, and I don't want to define all of my local variables as static (it is not economic!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea is wellcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eli.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 15:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131055#M1090</guid>
      <dc:creator>elil</dc:creator>
      <dc:date>2006-09-22T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong overlapping variables in RAM (CW HC08)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131056#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello&lt;BR /&gt;&lt;BR /&gt;This should be a corner situation of an configuration issue.&lt;BR /&gt;Please submit a service request through our on-line support site to get our&lt;BR /&gt;support people take a look at that.&lt;BR /&gt;&lt;BR /&gt;CrasyCat&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 16:46:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131056#M1091</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-09-22T16:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong overlapping variables in RAM (CW HC08)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131057#M1092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This is either a compiler bug, then use CrazyCats suggestion and file a service request or this is a simple stack overflow. If so, increase the stack size.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 05:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wrong-overlapping-variables-in-RAM-CW-HC08/m-p/131057#M1092</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-09-23T05:48:26Z</dc:date>
    </item>
  </channel>
</rss>

