1.1.5. Thumb C libraries

The linker automatically links in the Thumb C library if it detects that one or more of the objects to be linked have been built for:

Despite its name, the Thumb C library might not contain exclusively Thumb code, but might use ARM instructions if they are available for critical functions, such as memcpy, memset, and memclr, for good performance. The bulk of the Thumb C library, however, is coded in Thumb for the best code density.

Note

The Thumb C library used for ARMv6-M targets contains only Thumb-1 code.

The Thumb C library used for ARMv7-M targets contains only Thumb-2 code.

See Chapter 2 The C and C++ Libraries for more information.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0349A
Non-Confidential