<?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: Special keywords... in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Special-keywords/m-p/192871#M4928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly are you trying to achieve here?&lt;/P&gt;&lt;P&gt;There is no dedicated keyword to place something in RAM, FLASH or EEPROM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically on the compiler side you specify in which section you want to place a variable and then in your linker.PRM file you place the section in the appropriate memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - constant variables are placed in .rodata (variable defined with const).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;string constants in .rodata1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - global variables defined with an initialization value are placed in .data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; global variables defined without initialization value are placed in .bss&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define your own section using the #pragma DATA_SEG or #pragma CONST_SEG to specify alternate sections.&lt;/P&gt;&lt;P&gt;Then all you need to do is place the sections accordingly in&amp;nbsp;the .PRM file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 16:52:32 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2010-04-19T16:52:32Z</dc:date>
    <item>
      <title>Special keywords...</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Special-keywords/m-p/192870#M4927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;i'm working on a MC9S08DZ60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to find somethings about special keyword :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-to write in internal RAM&lt;/P&gt;&lt;P&gt;-to write in internal ROM&lt;/P&gt;&lt;P&gt;-to write in internal FLASH&lt;/P&gt;&lt;P&gt;-to write in internal EEPROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have saw something like "const var in rom" in the *.prm file... but i don't know...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me to find a good way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ty all ^^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 01:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Special-keywords/m-p/192870#M4927</guid>
      <dc:creator>Iko</dc:creator>
      <dc:date>2010-04-18T01:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Special keywords...</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Special-keywords/m-p/192871#M4928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly are you trying to achieve here?&lt;/P&gt;&lt;P&gt;There is no dedicated keyword to place something in RAM, FLASH or EEPROM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically on the compiler side you specify in which section you want to place a variable and then in your linker.PRM file you place the section in the appropriate memory area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - constant variables are placed in .rodata (variable defined with const).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;string constants in .rodata1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - global variables defined with an initialization value are placed in .data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; global variables defined without initialization value are placed in .bss&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can define your own section using the #pragma DATA_SEG or #pragma CONST_SEG to specify alternate sections.&lt;/P&gt;&lt;P&gt;Then all you need to do is place the sections accordingly in&amp;nbsp;the .PRM file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 16:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Special-keywords/m-p/192871#M4928</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-04-19T16:52:32Z</dc:date>
    </item>
  </channel>
</rss>

