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. If ARM instructions are available, the Thumb library might use them to improve the performance of critical functions such as memcpy(), memset(), and memclr(). The bulk of the Thumb C library, however, is coded in Thumb for the best code density.

For an ARM instruction-only build, compile with the --arm_only option.


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.

Show/hideSee also


Compiler Reference:

Other information
Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0475C