<?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>Classic/Legacy CodeWarriorのトピックRe: Text table values not located near each other in memory</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191633#M4875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to add this is with CodeWarrior 10.1 and I'm using a Coldfire MCF51CN128 MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 05:19:43 GMT</pubDate>
    <dc:creator>ignisuti</dc:creator>
    <dc:date>2011-12-21T05:19:43Z</dc:date>
    <item>
      <title>Text table values not located near each other in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191632#M4874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following list of text values defined in my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;static char const * const daylight_savings_time_tbl[ TIME_DAYLIGHT_SAVINGS__CNT ] =&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; /* TIME_DAYLIGHT_SAVINGS__OFF&amp;nbsp; */ "Off",&amp;nbsp;&amp;nbsp;&amp;nbsp; /* TIME_DAYLIGHT_SAVINGS__ON&amp;nbsp; */ "On",&amp;nbsp;&amp;nbsp;&amp;nbsp; /* TIME_DAYLIGHT_SAVINGS__AUTO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */ "Auto"&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/PRE&gt;&lt;P&gt;Unfortunatly, these text values don't all show-up together in RAM (see image below). Is there another way I can declare this table?&lt;/P&gt;&lt;P&gt;It's rather critical to what I'm trying to accomplish. Because my function is handed many tables of strings like this one, I have it simply search for the NULL character and assume the start of the next string is the next character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dl.dropbox.com/u/438946/MCU%20Memory.jpg" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank"&gt;&lt;IMG alt="MCU Memory" border="0" height="97" src="http://dl.dropbox.com/u/438946/MCU%20Memory.jpg" width="233" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191632#M4874</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2020-10-29T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Text table values not located near each other in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191633#M4875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to add this is with CodeWarrior 10.1 and I'm using a Coldfire MCF51CN128 MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 05:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191633#M4875</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-12-21T05:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text table values not located near each other in memory</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191634#M4876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so I found that unchecking the following compiler setting fixed my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix this issue, &lt;STRONG&gt;uncheck&lt;/STRONG&gt; this value: &amp;nbsp;Project &amp;gt; Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; Language Settings &amp;gt; &lt;STRONG&gt;Reuse Strings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any other suggestions, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 06:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Text-table-values-not-located-near-each-other-in-memory/m-p/191634#M4876</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-12-21T06:13:20Z</dc:date>
    </item>
  </channel>
</rss>

