Use microlib in MDK

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.