<?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: Interpreting/Understanding map file in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647575#M13786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;The linker .map file is indeed hard to read, and actually does not help much :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) The simplest way to know this is to use the size utility and have the size printed after the link phase. You have several ways. One is to use a post-build command in CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/" title="https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/"&gt;Printing Code Size Information in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or use the 'Print size' checkbox, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/" title="https://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/"&gt;Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See &lt;A class="link-titled" href="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/" title="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/"&gt;text, data and bss: Code and Data Size Explained | MCU on Eclipse&lt;/A&gt;&amp;nbsp; for&amp;nbsp; a description of the format/data. If you want something like this:&lt;/P&gt;&lt;P&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;BR /&gt;&amp;nbsp;&amp;nbsp; PROGRAM_FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40648 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.88%&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25748 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13.10%&lt;/P&gt;&lt;P&gt;Then you need the latest GNU tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) That depends a little with the GNU tools used. CodeWarrior uses older ones, and I think you have to list each file as described in &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/" title="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/"&gt;Listing Code and Data Size for each Source File with GNU and Eclipse | MCU on Eclipse&lt;/A&gt; . Newer GNU tools as in Kinetis Design Studio accept wild cards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 19:32:28 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2017-01-26T19:32:28Z</dc:date>
    <item>
      <title>Interpreting/Understanding map file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647574#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've recently switched to using Code Warrior. I'm looking at the .map file output, and I'm struggling to interpret some sections of it.&lt;/P&gt;&lt;P&gt;(I'm used to using IAR Embedded Workbench)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I'm running close to the limit of my target's code size. So I want to know:&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;What my current Code Size is?&lt;/LI&gt;&lt;LI&gt;Which area of the source is generating the largest output? (So I can target that area)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Looking at my .map file I can see it's telling me in the &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Memory Configuration&lt;/SPAN&gt; section how much I've allocated to each area (&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;m_text&lt;/SPAN&gt;, &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;m_data&lt;/SPAN&gt;), but I already knew that because I can read that from the linker file. What I can't see is how much of each section is actually used.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation explaining the output in the .map file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:33:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647574#M13785</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-01-26T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting/Understanding map file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647575#M13786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;The linker .map file is indeed hard to read, and actually does not help much :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) The simplest way to know this is to use the size utility and have the size printed after the link phase. You have several ways. One is to use a post-build command in CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/" title="https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/"&gt;Printing Code Size Information in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or use the 'Print size' checkbox, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/" title="https://mcuoneclipse.com/2012/09/24/code-size-information-with-gcc-for-armkinetis/"&gt;Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See &lt;A class="link-titled" href="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/" title="https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/"&gt;text, data and bss: Code and Data Size Explained | MCU on Eclipse&lt;/A&gt;&amp;nbsp; for&amp;nbsp; a description of the format/data. If you want something like this:&lt;/P&gt;&lt;P&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;BR /&gt;&amp;nbsp;&amp;nbsp; PROGRAM_FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40648 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.88%&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25748 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13.10%&lt;/P&gt;&lt;P&gt;Then you need the latest GNU tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) That depends a little with the GNU tools used. CodeWarrior uses older ones, and I think you have to list each file as described in &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/" title="https://mcuoneclipse.com/2014/07/13/listing-code-and-data-size-for-each-source-file-with-gnu-and-eclipse/"&gt;Listing Code and Data Size for each Source File with GNU and Eclipse | MCU on Eclipse&lt;/A&gt; . Newer GNU tools as in Kinetis Design Studio accept wild cards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647575#M13786</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-01-26T19:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interpreting/Understanding map file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647576#M13787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - that may be what I'm after&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 10:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Interpreting-Understanding-map-file/m-p/647576#M13787</guid>
      <dc:creator>beng_</dc:creator>
      <dc:date>2017-01-27T10:24:23Z</dc:date>
    </item>
  </channel>
</rss>

