<?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: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190000#M6789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Dave,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If the code you have written does not use the heap functions, I would assume it is the third party code that does . &amp;nbsp; I would expect that the third party supplier should be able to specify the total resources, including heap and stack size, that the software requires.&amp;nbsp; This will determine whether the software is actually compatible with a particular device.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2008 04:23:40 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2008-02-16T04:23:40Z</dc:date>
    <item>
      <title>AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189995#M6784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Before I begin I already started an SR &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.freescale.com%2Fwebapp%2Fservicerequest.clr_list_details_SR.framework%3FinternalServiceRequestId%3D1-6ZJ61L%26serviceRequestNumber%3D1-422477913%26category%3DTechnical%2520Request%26topic%3DCodeWarrior%26commandType%3DVIEWOPENSR" rel="nofollow" target="_blank"&gt;1-422477913 a&amp;gt;&lt;/A&gt; but I am hoping another user has had this issue and might be able to provide an answer a little quicker.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My processor is a 9S08AW60 (2048 Bytes RAM, 64K ROM) and I am using CW 6.0 for Microcontrollers.&amp;nbsp; I have purchased a thrid party embedded GUI library for the LCD I have connected and I am running into a problem with the amount of RAM being used.&amp;nbsp; currently it appears I am using 2447 Bytes of RAM, obviously too much.&amp;nbsp; In trying to figure out where I can cut back I noticed that CW seems to be the big memory hog not the GUI library.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CW links in a library called ansii.lib.&amp;nbsp; It appears that this lib is allocating 2018 bytes of RAM.&amp;nbsp; When the processor only has 2048, well that does not leave much for anyone else.&amp;nbsp; Does anyone know how to reduce how much RAM this lib function is using?&lt;/DIV&gt;&lt;DIV&gt;a&amp;gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 08:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189995#M6784</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2008-02-15T08:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189996#M6785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello Dave,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My understanding is that the code and data sizes listed against a library file (and probably any other source files) represent the total resources required by the library if all functions were to be utilised.&amp;nbsp; Since this is unlikely to be the case for the ANSI library, the unused functions will not be linked, reducing the resources actually consumed by the library functions.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Normally, you would consult the project.map file to see actual allocations, but I think you will first need to get a successful compile and link of your code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2008-02-15&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:55 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 09:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189996#M6785</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-02-15T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189997#M6786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;To get a successful link, just tweak the prm temporarily and provide more RAM. But actually even when the linking fails, the linker is still emitting a (partial) map file which lists everything which was allocated before the failure happened.&lt;BR /&gt;The only thing which comes to my mind which uses more than a few bytes of RAM is malloc, the buffer there can (and obviously should) be adapted to the actually available RAM.&lt;BR /&gt;See libdefs.h, LIBDEF_HEAPSIZE.&lt;BR /&gt;If possible, I would not actually use dynamically allocated memory on a small chip though.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 10:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189997#M6786</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-02-15T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189998#M6787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First, thanks for the responses this was all good info.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;After looking at the partial .map that was generated I see th following line:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;*********************************************************************************************&lt;BR /&gt;OBJECT-ALLOCATION SECTION&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Module&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr&amp;nbsp;&amp;nbsp; hSize&amp;nbsp;&amp;nbsp; dSize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ref&amp;nbsp;&amp;nbsp;&amp;nbsp; Section&amp;nbsp;&amp;nbsp; RLIB&lt;BR /&gt;---------------------------------------------------------------------------------------------&lt;BR /&gt;MODULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- HEAP.C.o (ansiis.lib) --&lt;BR /&gt;- PROCEDURES:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _heapcrash_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0'Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; .text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;- VARIABLES:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _heap_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0'Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7D0&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; HEAP_SEGMENT&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;It appears that the compiler is allocating 2000 bytes to the heap.&amp;nbsp; I do not use malloc functions when I am using an 8-bit micro with 2K of RAM, this usually can cause more problems than it's worth.&amp;nbsp; So now the question is where can I change&amp;nbsp;_heap_ to a smaller value?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I looked in the Processor Bean but I don't see a heap setting.&amp;nbsp;I tried to change libdefs.h but did not change anything after a recompile.&amp;nbsp; I am not finding it in the CW docs but is there a compiler switch I could use?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 00:34:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189998#M6787</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2008-02-16T00:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189999#M6788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;OK, I was able to directly adjust the .prm file to add some "virtual memory" ;o) and now I do not get a linker error and I am able to see a full .map file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is defenitely the heap that is sucking up all the RAM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;.startData                        14     R     0x193D     0x194A   ROM.init                            221     R     0x1860     0x193C   ROMHEAP_SEGMENT                    2000   R/W       0xED      0x8BC   RAM.common                          168   R/W      0x8BD      0x964   RAM.stack                            64   R/W      0x965      0x9A4   RAM.copy                              2     R     0x28D1     0x28D2   ROMSummary of section sizes per section type:READ_ONLY (R):        10A9 (dec:     4265)READ_WRITE (R/W):      915 (dec:     2325)NO_INIT (N/I):          8B (dec:      139)&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I have tried to change:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;//#define LIBDEF_HEAPSIZE 2000&lt;BR /&gt;#define LIBDEF_HEAPSIZE 500&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;in libdefs.h but even when I rebuild the application for some reason _HEAPSIZE is not getting updated.&amp;nbsp; Anyone know how I can force the updated libdefs.h to be included in a recompile?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/189999#M6788</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2020-10-29T09:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190000#M6789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Dave,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If the code you have written does not use the heap functions, I would assume it is the third party code that does . &amp;nbsp; I would expect that the third party supplier should be able to specify the total resources, including heap and stack size, that the software requires.&amp;nbsp; This will determine whether the software is actually compatible with a particular device.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 04:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190000#M6789</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-02-16T04:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190001#M6790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The map file shows the dependencies, so when searching for _heap_ and following all dependencies, it should be easy to spot where the dependency is from.&lt;BR /&gt;Changing libdefs.h on its own does not help as the HEAP.C is compiled as part of the library.&lt;BR /&gt;So there are these two ways:&lt;BR /&gt;- add heap.c to your project and make sure it links before the ANSI lib in the link order.&lt;BR /&gt;I think this may cause a linker warning about the different sized _heap_.&lt;BR /&gt;- rebuild the ANSI library, there is a mcp in lib/hc08c/ to do that. Note that this will rebuild the shared library used for all projects.&lt;BR /&gt;&lt;BR /&gt;With a local libdefs.h and the search paths setup that this one is found first, the first method can be done without changing the library.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 08:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190001#M6790</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-02-16T08:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: AW60 &amp; Codewarrior 6.0 for Microcontrollers - ansii.lib question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190002#M6791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&amp;nbsp;for the info from everyone.&amp;nbsp; I think I resolved it and the solution was from Bigmac.&amp;nbsp; I unknowingly turned on a feature in the GUI lib that uses malloc() which caused the heap to be allocated.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am still a little confused about the role that libdefs.h plays.&amp;nbsp; According to the Compler_HC08.pdf&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="5"&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;P align="left"&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="5"&gt;Memory Management - malloc(), free(),&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;B&gt;&lt;FONT face="Helvetica-Bold" size="5"&gt;calloc(), realloc(); alloc.c, and heap.c&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;FONT face="Times-Roman" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman" size="1"&gt;File &lt;FONT face="Courier" size="1"&gt;alloc.c&lt;/FONT&gt; &lt;FONT face="Times-Roman" size="1"&gt;provides a full implementation of these functions. You must specify heap&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman" size="1"&gt;location, heap size, and heap overrun processes.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman" size="1"&gt;Address all of these points in the &lt;FONT face="Courier" size="1"&gt;heap.c&lt;/FONT&gt; &lt;FONT face="Times-Roman" size="1"&gt;file. View the heap as a large array with a&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman" size="1"&gt;default error handling function. Feel free to modify this function or the size of the heap to&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman" size="1"&gt;suit the needs of the application. Define the heap size in &lt;FONT face="Courier" size="1"&gt;libdefs.h&lt;/FONT&gt;&lt;FONT face="Times-Roman" size="1"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Courier" size="1"&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;LIBDEF_HEAPSIZE&lt;FONT face="Times-Roman" size="1"&gt;&lt;FONT face="Times New Roman"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;I understand what Daniel is saying but the documentation tells something different.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;So I tried the first method and I do get a warning "L1919: Duplicate defination of _heap_. Ignoring defination from heap.c.o(ansiis.lib), using definition from heap.c.o"&amp;nbsp; Other than this warning it seems to fix the allocation issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier" size="1"&gt;Anyways I will disable the GUI function that usues malloc() until I understand better how much _heap_ space I need to allocate.&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 02:03:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/AW60-Codewarrior-6-0-for-Microcontrollers-ansii-lib-question/m-p/190002#M6791</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2008-02-19T02:03:30Z</dc:date>
    </item>
  </channel>
</rss>

