What are Redlib and Newlib?
Red Suite / LPCXpresso is shipped with two C libraries:
- Newlib - GNU C library
- Redlib - Our own (non-GNU) ISO C90 standard C library
By default, Red Suite / 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.
The version of Redlib provided with v4 of the Code Red IDE has been enhanced compared to earlier release. Thus for example it now contains some C99 functionality, as well as a number of other improvements. For more details, please see the FAQ Redlib v2 Notes.
Each C library is also provided in three variants (None,Nohost and Semihost). For details please see the FAQ What are none, nohost and semihost libraries?
For details on how to switch the selected C library, please see the FAQ Switching the selected C library.