<?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: Data is not put in expected section when optimization level is O3 with global optimization</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139992#M1283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, you are right.&amp;nbsp; Thank you&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 09:23:51 GMT</pubDate>
    <dc:creator>michael_liu</dc:creator>
    <dc:date>2006-12-15T09:23:51Z</dc:date>
    <item>
      <title>Data is not put in expected section when optimization level is O3 with global optimization</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139990#M1281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'm using CW3.0 Beta, and found that when optimization level is O3 with global optimization the data is not put in expected section or unexpected data is put in the section. I'm using such directive as .rename "*starcore_main.eln",".data",".cc_m3_data" in the lcf file.&amp;nbsp; I found in the .map file that the file name in which the data is declared is not correct.&amp;nbsp; For example, an array is declared in file1.c with int a[100], and is declared in file2.c as 'extern int a[]', in lcf file there is .rename "*file1.eln",".data",".cc_m3_data" ,&amp;nbsp; and finally&amp;nbsp;in the .map file it showed array a is not from file1.c but file2.c, and some unexpected data is put in .cc_m3_data also.&amp;nbsp; Has anyone experienced this issue and can give some explanation?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 09:26:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139990#M1281</guid>
      <dc:creator>michael_liu</dc:creator>
      <dc:date>2006-12-14T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not put in expected section when optimization level is O3 with global optimization</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139991#M1282</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;I assume you are using CodeWarrior for StarCore. Am I right?&lt;/DIV&gt;&lt;DIV&gt;When you are activating global optimization, the compiler internally merges the whole application&amp;nbsp;in one single file. So file file1.eln does not exist any more.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you wish to allocate an object in a specific section, you have to use the place command in an application configuration file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&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, 14 Dec 2006 19:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139991#M1282</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-12-14T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data is not put in expected section when optimization level is O3 with global optimization</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139992#M1283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, you are right.&amp;nbsp; Thank you&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Data-is-not-put-in-expected-section-when-optimization-level-is/m-p/139992#M1283</guid>
      <dc:creator>michael_liu</dc:creator>
      <dc:date>2006-12-15T09:23:51Z</dc:date>
    </item>
  </channel>
</rss>

