The main differences between microlib and default C libraries are:
Microlib does not comply with iso c library standards. Some ISO features are not supported, and other features have fewer features.
Microlib does not comply with the IEEE 754 binary floating point algorithm standard.
Microlib is highly optimized to make the code small.
You cannot configure the region settings. By default, region C is the only available region.
You cannot declare main () as a parameter and cannot return content.
Stdio is not supported, except for unbuffered stdin, stdout, and stderr.
Microlib provides limited support for c99 functions.
Microlib does not support operating system functions.
Microlib does not support location-independent code.
Microlib does not provide mutex lock to prevent non-thread-safe code.
Microlib does not support wide characters or multi-byte strings.
Unlike stdlib, microlib does not support single-or dual-zone memory models. Microlib only provides a dual-zone memory model, that is, a separate stack and heap zone.
You can reasonably use microlib with -- fpmode = STD or -- fpmode = fast.
Functions in microlib are responsible:
Create an environment where the C program can be executed. This includes:
Create a stack
Create a heap (if needed)
Components of the library used for initialization.
Call Main () to start executing the program.
To use microlib to build a program, you must use the command line option ?? Library_type = microlib. The compiler, assembler, or linker can use this option to process different files as needed. When you use this option with the linker, it overwrites all other options.
Use microlib in MDK