Datasheet
The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-11
Use the linker symbol table and cross reference listings to identify functions you have
called that directly, or indirectly, use semihosting. You can view this information by
using the linker options
-map
,
-xref
, and
-verbose
. Remove, or re-implement semihosted
functions, and rebuild the application.
API definitions
In addition to the semihosted functions listed in Table 4-2 on page 4-9 and Table 4-3 on
page 4-10, the functions and files listed in Table 4-4 might be useful when building for
a different environment.
Table 4-4 Published API definitions
File or function Description
__main()
and
__rt_entry()
Initializes the runtime environment and executes
the user application.
__rt_lib_init()
,
__rt_exit()
, and
__rt_lib_shutdown()
Initializes or finalizes the runtime library.
locale()
and
CTYPE
Defines the character properties for the local
alphabet. See Tailoring locale and CTYPE on
page 4-26.
rt_sys.h
A C header file describing all the functions whose
default (semihosted) implementations use the
semihosting SWI.
rt_heap.h
A C header file describing the storage management
abstract data type.
rt_locale.h
A C header file describing the five locale category
filing systems, and defining some macros that are
useful for describing the contents of locale
categories.
rt_misc.h
A C header file describing miscellaneous unrelated
public interfaces to the C library.
rt_memory.s
An empty, but commented, prototype
implementation of the memory model. See Writing
your own memory model on page 4-68 for a
description of this file.