<?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>MCUXpresso GeneralのトピックRe: Compiler unused code/data removal</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946196#M2372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, MCUXpresso has this option set automatically for Release builds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389145"&gt;https://community.nxp.com/thread/389145&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Aug 2019 20:04:54 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2019-08-02T20:04:54Z</dc:date>
    <item>
      <title>Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946195#M2371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I usually use (at the end of the development) a compiler option that removes unused data/code. From Atollic toolchain for ST here's the option to activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mcuxpresso.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86124i9B3F86821461776D/image-size/large?v=v2&amp;amp;px=999" role="button" title="mcuxpresso.png" alt="mcuxpresso.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I find these options on MCUxpresso?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 14:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946195#M2371</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-02T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946196#M2372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK, MCUXpresso has this option set automatically for Release builds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://community.nxp.com/thread/389145"&gt;https://community.nxp.com/thread/389145&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 20:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946196#M2372</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-08-02T20:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946197#M2373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is about grouping code and data items into single sections:&lt;/P&gt;&lt;P&gt;-ffunction-sections -fdata-sections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They should be set by default already in the SDK projects:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86148iF8DEED0600A712FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And for the linker to remove unused ones:&lt;/P&gt;&lt;P&gt;--gc-sections&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86232i39AFEE7403959B3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&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>Sat, 03 Aug 2019 03:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946197#M2373</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-08-03T03:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946198#M2374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-ffunction-sections and -fdata-sections MCU compiler flags are set in my project; and also --gc-sections MCU linker flag. However, lots of unused standard functions are linked to my application, such as read_r, _realloc_r, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The build configuration is using my own linker script and I have unchecked 'Do not use default libraries (-nodefaultlibs)' at Tool Settings &amp;gt;&amp;gt; MCU Linker &amp;gt;&amp;gt; General&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83129iCE7DB17DD32C2F7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue of what can be happening here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 09:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946198#M2374</guid>
      <dc:creator>embeddeddavid</dc:creator>
      <dc:date>2019-09-27T09:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946199#M2375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attach you map file. This may give some clues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 13:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946199#M2375</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-09-27T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946200#M2376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but I can't provide this information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 08:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946200#M2376</guid>
      <dc:creator>embeddeddavid</dc:creator>
      <dc:date>2019-09-30T08:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler unused code/data removal</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946201#M2377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m sorry, but I can’t help without it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 16:43:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Compiler-unused-code-data-removal/m-p/946201#M2377</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-09-30T16:43:48Z</dc:date>
    </item>
  </channel>
</rss>

