microLIB 是缺省 C 库的备选库,它旨在与需要装入到极少量内存中的深层嵌入式应用程序配合使用。LwIP中使用了microLIB,如果不勾选microLIB选项,则程序不能够正常运行,其主要原因在于LwIP使用了microLIB提供的标准输入和输出函数。本文对microLIB做详细介绍。
1、microLIB介绍
Microlib is an alternative library to the default C library. It is intended for use with deeply embedded applications that must fit into extremely small memory footprints(内存占用).These applications do not run under an operating system.
Note:
Microlib does not attempt to be an ISO C-compliant library.
Microlib is highly optimized for small code size. It has less functionality than the default C library and some ISO C features are completely missing. Some library functions are also slower.
Functions in microlib are responsible for:
Creating an environment that a C program can execute in. This includes:
Creating a stack.
Creating a heap, if required.
Initializing the parts of the library the program uses.
Starting execution by calling main().
|