4.8.5. __Heap_DescSize()

Returns the size of the __Heap_Descriptor structure.


int __Heap_DescSize(int 0);


This is called at initialization. It must return the sizeof your heap descriptor structure. In almost all cases the implementation in Example 4.18 is sufficient.

Example 4.18. Heap_DescSize

extern int __Heap_DescSize(int zero) {return sizeof(__Heap_Descriptor);}

This routine is required so that the library initialization can find an initial piece of memory big enough to be the heap descriptor.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D