Datasheet
The C and C++ Libraries
4-24 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
Syntax
extern value_in_regs struct __argc_argv __rt_lib_init(unsigned heapbase,
unsigned heaptop)
heapbase
Is the start of the heap memory block.
heaptop
Is the end of the heap memory block.
Implementation
This is the library initialization function. It is called immediatelyafter
__rt_stackheap_init()
and passed an initial chunk of memory to use as a heap. This
function is the standard ARM library initialization function and must not be
re-implemented.
Returns
The function returns
argc
and
argv
ready to be passed to
main()
. The structure is
returned in the registers as:
struct __argc_argv { int argc; char **argv;};
4.4.6 __rt_lib_shutdown()
This is the library shutdown function and is the companion to
__rt_lib_init()
.
Syntax
void __rt_lib_shutdown(void )
Implementation
This is the library shutdown function and is provided in casea user must call it directly.
This is the standard ARM library shutdown function and must not be re-implemented.