<?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 FAQsのトピックRe: What are Redlib and Newlib?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/1212557#M166</link>
    <description>&lt;P&gt;In a nutshell:&lt;/P&gt;&lt;P&gt;- RedLIb is a NXP proprietary compact library implementation: not a full implementation (e.g. does not support C++, or gcov and gprof)&lt;/P&gt;&lt;P&gt;- NewLib-Nano is a more compact library implementation than NewLib, aiming for code size instead of speed&lt;/P&gt;&lt;P&gt;As long as you don't use the standard library functions (printf, malloc, etc) it does not really matter. If your concern is minimal footprint and you don't care about the C (or C++) standard implementation, you might be best with RedLib. If you are concerned about the C library standard, go with newlib or newlib-nano. If you need speed but don't care much about RAM and FLASH usage and want the full blown thing or want to use C++: go with newlib, otherwise go with newlib-nano.&lt;/P&gt;&lt;P&gt;Personally I avoid using most of the C library functions anyway, but they still can be useful. Otherwise I prefer using newlib-nano as I can rebuild it from sources if needed.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 19:11:30 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2021-01-15T19:11:30Z</dc:date>
    <item>
      <title>What are Redlib and Newlib?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/475288#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LPCXpresso IDE is shipped with three C libraries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Newlib - GNU C library&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389086" data-objecttype="1" href="https://community.nxp.com/thread/389086"&gt;NewlibNano&lt;/A&gt; - a version of the GNU C library optimized for embedded.&lt;/LI&gt;&lt;LI&gt;Redlib - Our own (non-GNU) ISO C90 standard C library, with some C99 extensions.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, LPCXpresso will use the Redlib (family of) libraries for C projects and the Newlib (family of) libraries for C++ projects. Newlib provides complete C99 and C++ library support at the expense of a larger (in some cases, much larger) code size in your application. If you prefer a smaller application and don't need the additional functionality of the C99 or C++ libraries, you should use Redlib, which can can produce much smaller applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Redlib extensions to C90&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redlib does implement a number of extensions to the C90 C library specification, including some from the C99 specification. These include&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Single precision math functions&lt;UL&gt;&lt;LI&gt;Single precision implementations of some of the math.h functions such as sinf() and cosf() are provided.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;stdbool.h&lt;UL&gt;&lt;LI&gt;An implementation of the C99 stdbool.h header is provided.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;itoa&lt;UL&gt;&lt;LI&gt;itoa() is non-standard library function which is provided in many other toolchains to convert an integer to a string. To ease porting, an implementation of this function is provided, accessible via stdlib.h. For more details, please see the FAQ "&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389039" data-objecttype="1" href="https://community.nxp.com/thread/389039"&gt;&lt;SPAN style="border-bottom-color: transparent; color: #7bb1db; border-bottom-width: 1px; border-bottom-style: solid;"&gt;itoa() and uitoa() in Redlib&lt;/SPAN&gt;&lt;/A&gt;".&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="font-family: Lato, sans-serif; color: #e66e08; font-size: 18px; background: 0 50% #ffffff;"&gt;Library variants&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each C library is also provided in three variants (None, Nohost and Semihost).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details please see the FAQ "&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389153" data-objecttype="1" href="https://community.nxp.com/thread/389153"&gt;What are none, nohost and semihost libraries?&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details on how to switch the selected C library, please see the FAQ "&lt;A _jive_internal="true" data-containerid="11529" data-containertype="14" data-objectid="389104" data-objecttype="1" href="https://community.nxp.com/thread/389104"&gt;Switching the selected C library&lt;/A&gt;".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 05:40:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/475288#M139</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-04-01T05:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: What are Redlib and Newlib?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/1212552#M165</link>
      <description>&lt;P&gt;And what would be the difference (advantage?) between Redlib and Newlibnano?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 19:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/1212552#M165</guid>
      <dc:creator>m4l490n</dc:creator>
      <dc:date>2021-01-15T19:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: What are Redlib and Newlib?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/1212557#M166</link>
      <description>&lt;P&gt;In a nutshell:&lt;/P&gt;&lt;P&gt;- RedLIb is a NXP proprietary compact library implementation: not a full implementation (e.g. does not support C++, or gcov and gprof)&lt;/P&gt;&lt;P&gt;- NewLib-Nano is a more compact library implementation than NewLib, aiming for code size instead of speed&lt;/P&gt;&lt;P&gt;As long as you don't use the standard library functions (printf, malloc, etc) it does not really matter. If your concern is minimal footprint and you don't care about the C (or C++) standard implementation, you might be best with RedLib. If you are concerned about the C library standard, go with newlib or newlib-nano. If you need speed but don't care much about RAM and FLASH usage and want the full blown thing or want to use C++: go with newlib, otherwise go with newlib-nano.&lt;/P&gt;&lt;P&gt;Personally I avoid using most of the C library functions anyway, but they still can be useful. Otherwise I prefer using newlib-nano as I can rebuild it from sources if needed.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 19:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-are-Redlib-and-Newlib/m-p/1212557#M166</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-01-15T19:11:30Z</dc:date>
    </item>
  </channel>
</rss>

