ARM VERSION 1.2 Datový list Strana 151

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 276
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 150
The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-61
4.8.3 __Heap_Descriptor
You must define your own implementation of the abstract data type for heap. A C header
file describing this abstract data type is provided in
rt_heap.h
. You must provide the
interior definition of the structure so that the other functions can find the heap data.
Typical contents are given in Example 4-17.
Example 4-17 Heap_Descriptor
struct __Heap_Descriptor {
void *my_first_free_block;
void *my_heap_limit;
}
Your heap descriptor is set by
__Heap_Initialize()
and is passed to the other heap
functions, for example
__Heap_Alloc()
and
__Heap_Free()
.
Zobrazit stránku 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 275 276

Komentáře k této Příručce

Žádné komentáře