<?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 wasted heap space in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/wasted-heap-space/m-p/558077#M14856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by charchar on Wed Mar 25 16:39:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm playing with heap overflow checking mechanism by defining the function __check_heap_overflow.&amp;nbsp; This function gets called every time the heap grows past a 4K boundary.&amp;nbsp; I'm guessing because the heap advances 4K at a time.... Is there a way to tweak this value?&amp;nbsp; It results in up to 4K of memory being unallocatable (worst case) when the heap reaches its limit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:48:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:48:02Z</dc:date>
    <item>
      <title>wasted heap space</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/wasted-heap-space/m-p/558077#M14856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by charchar on Wed Mar 25 16:39:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm playing with heap overflow checking mechanism by defining the function __check_heap_overflow.&amp;nbsp; This function gets called every time the heap grows past a 4K boundary.&amp;nbsp; I'm guessing because the heap advances 4K at a time.... Is there a way to tweak this value?&amp;nbsp; It results in up to 4K of memory being unallocatable (worst case) when the heap reaches its limit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/wasted-heap-space/m-p/558077#M14856</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: wasted heap space</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/wasted-heap-space/m-p/558078#M14857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Mar 26 01:02:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that you are using Newlib? IIRC this will grab a 4KB chunk for the heap, then subdivides this in further calls to malloc, until more memory is required, when it will grab another 4KB chunk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try using Newlib-Nano which I think handles the heap differently to the full Newlib library, or else Redlib, which definitely does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fswitching-selected-c-library" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/switching-selected-c-library&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/wasted-heap-space/m-p/558078#M14857</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:48:02Z</dc:date>
    </item>
  </channel>
</rss>

