<?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: Removing debug info in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598105#M7520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;debug information does not count for code size, it does not get programmed/downloaded into the target, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/06/01/debug-vs-release/" title="https://mcuoneclipse.com/2012/06/01/debug-vs-release/"&gt;Debug vs. Release? | MCU on Eclipse&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;You can check your actual code size with the 'size' utility (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; and &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; .&lt;/P&gt;&lt;P&gt;There are several other options (including -Os) which affect code size.&lt;/P&gt;&lt;P&gt;Or what you are using from the libraries: e.g. not using printf() and the like can reduce your code size by 10-20 kByte depending on usage. There -Lto (Link time Optimization) which optimizes across compilation units which can have a positive impact too.&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>Fri, 24 Feb 2017 17:47:58 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2017-02-24T17:47:58Z</dc:date>
    <item>
      <title>Removing debug info</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598104#M7519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing something that seems like I'm doing the right thing, but I'm not.&amp;nbsp; We're bumping into flash size limitations, and according to the map file, there is debug info in places (for example, .debug_macro, .debug_ranges).&amp;nbsp; In the debugging settings under the project properties I can change from maximum to none, and the debug sections are gone from the map, but the ROM image is exactly the same size.&amp;nbsp; Am I missing something?&amp;nbsp; We do have size optimization turned on.&amp;nbsp; Can we remove the debug info to make it smaller?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598104#M7519</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2017-02-24T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing debug info</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598105#M7520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;debug information does not count for code size, it does not get programmed/downloaded into the target, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/06/01/debug-vs-release/" title="https://mcuoneclipse.com/2012/06/01/debug-vs-release/"&gt;Debug vs. Release? | MCU on Eclipse&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;You can check your actual code size with the 'size' utility (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; and &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; .&lt;/P&gt;&lt;P&gt;There are several other options (including -Os) which affect code size.&lt;/P&gt;&lt;P&gt;Or what you are using from the libraries: e.g. not using printf() and the like can reduce your code size by 10-20 kByte depending on usage. There -Lto (Link time Optimization) which optimizes across compilation units which can have a positive impact too.&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>Fri, 24 Feb 2017 17:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598105#M7520</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-02-24T17:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Removing debug info</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598106#M7521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, we managed to free up space.&amp;nbsp; I had forgotten that kernel logging was still turned on for MQX-Lite.&amp;nbsp; We did look into the link-time optimization, but down in the guts of the MQX-Lite kernel turning that on created some alignment problems that led to run time errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 14:22:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Removing-debug-info/m-p/598106#M7521</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2017-02-27T14:22:58Z</dc:date>
    </item>
  </channel>
</rss>

