2.1 About 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.


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().
Related concepts
2.2 Differences between microlib and the default C library
2.3 Library heap usage requirements of microlib
2.4 ISO C features missing from microlib
2.5 Building an application with microlib
2.7 Entering and exiting programs linked with microlib
Related tasks
2.6 Configuring the stack and heap for use with microlib
Related reference
2.8 Tailoring the microlib input/output functions
Non-ConfidentialPDF file icon PDF versionARM DUI0378G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.