<?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: on a diet in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283040#M10652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to erase this uncalled functions because they are waste of space in memory all that you need to do is to Remove them in linker options. Go to Project Properties (right click on project) &amp;gt; C/C++ Build &amp;gt; ARM Ltd Windows GCC C Linker &amp;gt; General&amp;nbsp; and check the box "Remove unused sections" (this one is by default). With this all the uncalled functions will not be linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="in a diet uncalled functions.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119300i9050563E115F5AFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="in a diet uncalled functions.png" alt="in a diet uncalled functions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can check all the functions, variables and more in .map file (located in FLASH folder) there you can see the size of every function; all the uncalled functions will not have size because are not linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand if you only want to know which functions are uncalled check .map file: functions with size 0x00 are unused functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 21:05:03 GMT</pubDate>
    <dc:creator>adriansc</dc:creator>
    <dc:date>2013-05-03T21:05:03Z</dc:date>
    <item>
      <title>on a diet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283039#M10651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone have (preferably using CodeWarrior) a method for finding uncalled functions? (no Keil or IAR available)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283039#M10651</guid>
      <dc:creator>erikmalund</dc:creator>
      <dc:date>2013-04-24T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: on a diet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283040#M10652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to erase this uncalled functions because they are waste of space in memory all that you need to do is to Remove them in linker options. Go to Project Properties (right click on project) &amp;gt; C/C++ Build &amp;gt; ARM Ltd Windows GCC C Linker &amp;gt; General&amp;nbsp; and check the box "Remove unused sections" (this one is by default). With this all the uncalled functions will not be linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="in a diet uncalled functions.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119300i9050563E115F5AFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="in a diet uncalled functions.png" alt="in a diet uncalled functions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can check all the functions, variables and more in .map file (located in FLASH folder) there you can see the size of every function; all the uncalled functions will not have size because are not linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand if you only want to know which functions are uncalled check .map file: functions with size 0x00 are unused functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 21:05:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283040#M10652</guid>
      <dc:creator>adriansc</dc:creator>
      <dc:date>2013-05-03T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: on a diet</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283041#M10653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;figured that one out a week ago, your answer, while appreciated, is a bit late&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what blew me is that you can "set a breakpoint" in an uncalled function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with other systems setting a breakpoint is a good way to see if a given function is included.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 21:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/on-a-diet/m-p/283041#M10653</guid>
      <dc:creator>erikmalund</dc:creator>
      <dc:date>2013-05-03T21:12:08Z</dc:date>
    </item>
  </channel>
</rss>

