<?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>LPCXpresso IDEのトピックRe: Minimizing code size</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557752#M14722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fpg on Fri Nov 25 11:50:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;If you use --gc-sections on debug builds, you can still debug, but you will occasionally see some odd things, such as being unable to step into functions, or being unable to display some variables. We are working to resolve this issue.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm planning to remove unused codes right now. Do these problems still exist?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:06:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:06:21Z</dc:date>
    <item>
      <title>Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557748#M14718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joe912 on Fri Apr 16 07:27:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;so i have a project where i need to compute a value using a "sin()"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so i include "math.h" and then put the sin function in my code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;however this increases the code size by roughly 10K&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so im assuming that when i use a function from math.h it is including all of the functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way i can tell the compiler to remove the unused functions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557748#M14718</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557749#M14719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Apr 16 07:41:21 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to use the "--gc-sections" option in the linker. This is the default for Releae builds, but is not used for Debug builds as it can cause some problems when debugging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To set this option, select your project in Project Explorer and then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Project-&amp;gt;Properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Expand C/C++ Build and then click on Settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Under MCU Linker, select Miscellaneous&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Under "Other options" press the button with the green "+"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and add --gc-sections&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you are done, the dialog will look something like screenshot attachment&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557749#M14719</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557750#M14720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joe912 on Fri Apr 16 08:46:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;perfect thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by problems what do you mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unable to debug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557750#M14720</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557751#M14721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Apr 16 10:19:17 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use --gc-sections on debug builds, you can still debug, but you will occasionally see some odd things, such as being unable to step into functions, or being unable to display some variables. We are working to resolve this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557751#M14721</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557752#M14722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fpg on Fri Nov 25 11:50:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;If you use --gc-sections on debug builds, you can still debug, but you will occasionally see some odd things, such as being unable to step into functions, or being unable to display some variables. We are working to resolve this issue.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm planning to remove unused codes right now. Do these problems still exist?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557752#M14722</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing code size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557753#M14723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fpg on Fri Nov 25 11:54:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: fpg&lt;/STRONG&gt;&lt;BR /&gt;I'm planning to remove unused codes right now. Do these problems still exist?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh I see now it is the new default...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Minimizing-code-size/m-p/557753#M14723</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:06:21Z</dc:date>
    </item>
  </channel>
</rss>

