<?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 Re: Storage variable in the specific location in memory in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124705#M40</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;U&gt;&lt;FONT color="#0000ff"&gt;unsigned char CTRLBYT @0x0048&lt;/FONT&gt;&lt;/U&gt;&lt;A href="mailto:i@0x200" rel="nofollow" target="_blank"&gt;mailto:i@0x200" rel="nofollow" target="_blank&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 23:28:32 GMT</pubDate>
    <dc:creator>mbandini</dc:creator>
    <dc:date>2007-03-01T23:28:32Z</dc:date>
    <item>
      <title>Storage variable in the specific location in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124704#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how I can storage variable in the specific location in memory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int x; //I want have variable x on address 0x200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but how it say to compiler?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Code warrior 8.0 and DSP56F805&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 04:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124704#M39</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2007-03-01T04:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Storage variable in the specific location in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124705#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;U&gt;&lt;FONT color="#0000ff"&gt;unsigned char CTRLBYT @0x0048&lt;/FONT&gt;&lt;/U&gt;&lt;A href="mailto:i@0x200" rel="nofollow" target="_blank"&gt;mailto:i@0x200" rel="nofollow" target="_blank&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 23:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124705#M40</guid>
      <dc:creator>mbandini</dc:creator>
      <dc:date>2007-03-01T23:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Storage variable in the specific location in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124706#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;it doesn't work.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 00:25:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124706#M41</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2007-03-02T00:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Storage variable in the specific location in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124707#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The @ syntax is supported by the 8/16 bit tools (HC08/HC12).&lt;BR /&gt;I never used DSP56F805, so I cannot really say anything useful specific to this compiler, but I would suspect that you can place some variables into a specific section and then place this section in the lcf file.&lt;BR /&gt;&lt;BR /&gt;If you do not really need a variable, just a way to read/write from a certain memory location, you can use a macro instead of a variable with any ANSI-C compiler.&lt;BR /&gt;#define MyVar (*(unsigned char*)0x200)&lt;BR /&gt;The actual code using it looks just as if a MyVar variable was defined as unsigned char, what's not so good is that there wont be any debug information tough, also the "variable" wont be initialized, of course.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 07:53:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124707#M42</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-03-03T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Storage variable in the specific location in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124708#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello, Im starting at 56F801, coming from 8 bits microcontrollers and I just cant have it right, I want to write in assembler and need to use variables, but I dont know where to ( and how ) define them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How did you do? Did you find out how to define it?&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:19:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Storage-variable-in-the-specific-location-in-memory/m-p/124708#M43</guid>
      <dc:creator>Vilbcam</dc:creator>
      <dc:date>2007-06-06T13:19:37Z</dc:date>
    </item>
  </channel>
</rss>

