<?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>CodeWarrior Development Toolsのトピックtip - how to see your project code size without digging in the map file  (CodeWarrior &amp;gt;=10.3 print size feature)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/tip-how-to-see-your-project-code-size-without-digging-in-the-map/m-p/300745#M628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I just learned how to do this and thought I would share.&amp;nbsp; This is a feature of CodeWarrior for MCUs 10.3 and later with gcc selected as compiler.&amp;nbsp; Someone asked me if there was a "button" that you could push to see what your compiled code size was, instead of having to open and scrutinize the map file which has this info.&amp;nbsp; Looks like there is not a button, but there is a check box to enable it to print this information to the console window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So, in summary, to enable the project size to be printed to the console window after a build,&amp;nbsp; I did this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to Project…Properties…C/C++ Build…Settings…&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;Tool Settings (Tab)…Additional Tools…&amp;nbsp; check &lt;STRONG&gt;Print Size&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="11144_11144.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119771i575124ED9159FACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="11144_11144.png" alt="11144_11144.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43680i79850C3090E1A482/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size.png" alt="print_size.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;Build Artifact (Tab)…&lt;SPAN style="font-size: 12pt;"&gt;&lt;EM&gt;remove all spaces&lt;/EM&gt;&lt;/SPAN&gt; in the &lt;STRONG&gt;Artifact name:&lt;/STRONG&gt; field.&amp;nbsp; In my case, I replaced the folder name “&lt;EM&gt;Int Flash SramData Debug”&lt;/EM&gt; with “&lt;EM&gt;Int_Flash_SramData_Debug”&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11145_11145.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119772i5A7F7D866E83C382/image-size/large?v=v2&amp;amp;px=999" role="button" title="11145_11145.png" alt="11145_11145.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size_no_spaces.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43731i055DDE5D9BCA5DAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size_no_spaces.png" alt="print_size_no_spaces.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when the project is built, it runs the GNU Print Size utility to print the code size to the console. The code size is shown for in text, data, and bss sections as well as total size in decimal and hexadecimal format.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11146_11146.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119773i78D93ECAF9A36F12/image-size/large?v=v2&amp;amp;px=999" role="button" title="11146_11146.png" alt="11146_11146.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size_console.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43781i4A0FFD998DC77F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size_console.png" alt="print_size_console.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mac L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2014 18:46:54 GMT</pubDate>
    <dc:creator>macl</dc:creator>
    <dc:date>2014-04-21T18:46:54Z</dc:date>
    <item>
      <title>tip - how to see your project code size without digging in the map file  (CodeWarrior &gt;=10.3 print size feature)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/tip-how-to-see-your-project-code-size-without-digging-in-the-map/m-p/300745#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I just learned how to do this and thought I would share.&amp;nbsp; This is a feature of CodeWarrior for MCUs 10.3 and later with gcc selected as compiler.&amp;nbsp; Someone asked me if there was a "button" that you could push to see what your compiled code size was, instead of having to open and scrutinize the map file which has this info.&amp;nbsp; Looks like there is not a button, but there is a check box to enable it to print this information to the console window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So, in summary, to enable the project size to be printed to the console window after a build,&amp;nbsp; I did this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to Project…Properties…C/C++ Build…Settings…&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;Tool Settings (Tab)…Additional Tools…&amp;nbsp; check &lt;STRONG&gt;Print Size&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="11144_11144.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119771i575124ED9159FACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="11144_11144.png" alt="11144_11144.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43680i79850C3090E1A482/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size.png" alt="print_size.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;Build Artifact (Tab)…&lt;SPAN style="font-size: 12pt;"&gt;&lt;EM&gt;remove all spaces&lt;/EM&gt;&lt;/SPAN&gt; in the &lt;STRONG&gt;Artifact name:&lt;/STRONG&gt; field.&amp;nbsp; In my case, I replaced the folder name “&lt;EM&gt;Int Flash SramData Debug”&lt;/EM&gt; with “&lt;EM&gt;Int_Flash_SramData_Debug”&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11145_11145.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119772i5A7F7D866E83C382/image-size/large?v=v2&amp;amp;px=999" role="button" title="11145_11145.png" alt="11145_11145.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size_no_spaces.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43731i055DDE5D9BCA5DAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size_no_spaces.png" alt="print_size_no_spaces.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when the project is built, it runs the GNU Print Size utility to print the code size to the console. The code size is shown for in text, data, and bss sections as well as total size in decimal and hexadecimal format.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11146_11146.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119773i78D93ECAF9A36F12/image-size/large?v=v2&amp;amp;px=999" role="button" title="11146_11146.png" alt="11146_11146.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="print_size_console.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43781i4A0FFD998DC77F01/image-size/large?v=v2&amp;amp;px=999" role="button" title="print_size_console.png" alt="print_size_console.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mac L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 18:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/tip-how-to-see-your-project-code-size-without-digging-in-the-map/m-p/300745#M628</guid>
      <dc:creator>macl</dc:creator>
      <dc:date>2014-04-21T18:46:54Z</dc:date>
    </item>
  </channel>
</rss>

