The C library uses the standard ARM semihosted environment
to provide facilities such as file input/output. This environment
is supported by the ARM RVI™ debug
unit and the Real-Time Simulator Model (RTSM).
You can re-implement any of the target-dependent functions
of the C library as part of your application. This enables you to
tailor the C library and, therefore, the C++ library, to your own execution
environment.
You can also tailor many of the target-independent functions
to your own application-specific requirements. For example:
the malloc family
the ctype family
all the locale-specific functions.
Many of the C library functions are independent of any other
function and contain no target dependencies. You can easily exploit
these functions from assembler code.
Functions in the C library are responsible for:
Creating an environment in
which a C or C++ program can execute. This includes:
creating a stack
creating a heap, if required
initializing the parts of the library the program
uses.
Starting execution by calling main().
Supporting use of ISO-defined functions by the program.
Catching runtime errors and signals and, if required,
terminating execution on error or program exit.
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.