Datasheet

The C and C++ Libraries
4-56 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.7.7 _ttywrch()
This function writes a character to the console. The console might have been redirected.
You can use this function as a last resort error handling routine.
Syntax
void _ttywrch(int ch)
Implementation
The default implementation of this function uses the semihostingSWI.
You can redefine this function, or
__raise()
, even if there is no other input/output. For
example, it might write an error message to a log kept in nonvolatile memory.
4.7.8 __rt_fp_status_addr()
This function returns the address of the floating-point status register.
Syntax
unsigned* _rt_fp_status_addr(void)
Implementation
If
__rt_fp_status_addr()
is not defined,the default implementation from the C library
is used. The value is initialized when
__rt_lib_init()
calls
_fp_init()
. The constants
for the status word are listed in
fenv.h
. The default fp status is 0.