<?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: _lwmem_alloc vs _mem_alloc in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/lwmem-alloc-vs-mem-alloc/m-p/206635#M4885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I do not know what you need to know exactly. :smileyhappy:&lt;/P&gt;&lt;P&gt;For usual application developers, both return address of allocated memory space in the heap. The difference is in how they work internally.&lt;/P&gt;&lt;P&gt;lwmem or mem stands for memory manager used: you can use either mem or lwmem. They are compiled-in during PSP build process. In the user_config.h you can choose which memory manager you want to use. Then you get also exported header with macros redefining your _mem_alloc to _mem_alloc (the same call name if the memory manager is mem) or _mem_alloc to _lwmem_alloc (the translation to lwmem manager call in the case the memory manager is lwmem). That's why we recommend to use _mem_alloc in your application and to choose memory manager in user_config.h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 13:57:10 GMT</pubDate>
    <dc:creator>JuroV</dc:creator>
    <dc:date>2012-12-13T13:57:10Z</dc:date>
    <item>
      <title>_lwmem_alloc vs _mem_alloc</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/lwmem-alloc-vs-mem-alloc/m-p/206634#M4884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the situation for using _mem_alloc and _lwmem_alloc???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 06:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/lwmem-alloc-vs-mem-alloc/m-p/206634#M4884</guid>
      <dc:creator>netra</dc:creator>
      <dc:date>2012-12-13T06:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: _lwmem_alloc vs _mem_alloc</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/lwmem-alloc-vs-mem-alloc/m-p/206635#M4885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I do not know what you need to know exactly. :smileyhappy:&lt;/P&gt;&lt;P&gt;For usual application developers, both return address of allocated memory space in the heap. The difference is in how they work internally.&lt;/P&gt;&lt;P&gt;lwmem or mem stands for memory manager used: you can use either mem or lwmem. They are compiled-in during PSP build process. In the user_config.h you can choose which memory manager you want to use. Then you get also exported header with macros redefining your _mem_alloc to _mem_alloc (the same call name if the memory manager is mem) or _mem_alloc to _lwmem_alloc (the translation to lwmem manager call in the case the memory manager is lwmem). That's why we recommend to use _mem_alloc in your application and to choose memory manager in user_config.h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/lwmem-alloc-vs-mem-alloc/m-p/206635#M4885</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2012-12-13T13:57:10Z</dc:date>
    </item>
  </channel>
</rss>

