Integer and floating-point compiler functions and building an application without the C library
ARM Compiler
toolchain v5.02 for µVision Using ARM C and C++ Libraries and
Floating-Point Support
Home > The ARM C and C++ libraries > Integer and floating-point compiler
functions and building an application without the C library
Integer and floating-point compiler
functions and building an application without the C library
There are several compiler helper functions that the compiler
uses to handle operations that do not have a short machine code
equivalent. For example, integer divide uses a function that is implicitly
called by the compiler if there is no divide instruction available
in the target instruction set. (ARMv7-R and ARMv7-M architectures
use the instructions SDIV and UDIV in Thumb
state. Other versions of the ARM architecture also use compiler
functions that are implicitly invoked.)
Integer divide, and all the floating-point functions if you
use a floating-point mode that involves throwing exceptions, require __rt_raise() to
handle math errors. Re-implementing __rt_raise() enables
all the math functions, and it avoids having to link in all the signal-handling
library code.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.