ARM VERSION 1.2 Arkusz Danych Strona 105

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 276
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 104
The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-15
Program design
The functions you must re-implement depend on how much of the library functionality
you require as follows:
If you want only the compiler support functions for division, structure copy, and
FP arithmetic, you must provide
__rt_raise()
. This also enables very simple
library functions such as those in
errno.h
,
setjmp.h
, and most of
string.h
to work.
If you call
setlocale()
explicitly, locale-dependent functions start to work. This
enables you to use the
atoi
family,
sprintf()
,
sscanf()
, and the functions in
ctype.h
Programs that use floating-point must call
_fp_init()
. If you select software
floating-point, the program must also provide
__rt_fp_status_addr()
. (The
default action is this function is not reimplemented is to create a user libspace
area.
Implementing high-level input/output support is necessary for functions that use
fprintf()
or
fputs()
. The high-level output functions depend on
fputc()
and
ferror()
. The high-level input functions depend on
fgetc()
and
__backspace()
.
Implementing the above functions and the heap enables you to use almost the
entire library.
Using low-level functions
If you are using the libraries in an application that does not have a
main()
function, you
must re-implement some functions in the library. See The standalone C library
functions on page 4-16 for a detailed list of functions that are not available, functions
that are available without modification, and functions that are available after other
lower-level functions are re-implemented.
__rt_raise()
is essential. It is required by all FP functions, by integer division so that
divide-by-zero can be reported, and by some other library routines. You probably cannot
write a nontrivial program without doing something that requires
__rt_raise()
.
Note
If
rand()
is called,
srand()
must be called first. This is done automatically during library
initialization but not when you avoid the library initialization.
Przeglądanie stron 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 275 276

Komentarze do niniejszej Instrukcji

Brak uwag

Doro Non manuels d'utilisation

La liste de Doro Non produits contient 1 manuels d'utilisation pour les modèles 1. Tous les guides d'utilisation en format pdf peuvent être téléchargés ou consultés en ligne.

Cliquez sur un alphabet ci-dessous pour faire défiler la liste complète des modèles commençant par cette lettre

Modèles Type de document
380106
Fiche technique   Doro HearEasy 310ra, 2 pages