Keil™, An ARM® Company

C166 User's Guide

Memory Allocation

The following files contain the source code for the memory allocation routines.

C Source FileDescription
CALLOC.CThis file contains the source code for the calloc library routine. This routine allocates memory for an array from the memory pool.
FREE.CThis file contains the source code for the free library routine. This routine returns a previously allocated memory block to the memory pool.
INIT_MEM.CThis file contains the source code for the init_mempool library routine. This routine allows you to specify the location and size of a memory pool from which memory may be allocated using the malloc, calloc, and realloc routines.
MALLOC.CThis file contains the source code for the malloc library routine. This routine allocates memory from the memory pool.
REALLOC.CThis file contains the source code for the realloc library routine. This routine resizes a previously allocated memory block.
XCALLOC.CThis file contains the source code for the xcalloc library routine. This routine allocates memory for an array from an xhuge memory pool.
XFREE.CThis file contains the source code for the xfree library routine. This routine returns a previously allocated memory block to the xhuge memory pool.
XINIT_MEM.CThis file contains the source code for the xinit_mempool library routine. This routine allows you to specify the location and size of an xhuge memory pool that memory may be allocated using the xmalloc, xcalloc, and xrealloc routines.
XMALLOC.CThis file contains the source code for the xmalloc library routine. This routine allocates memory from an xhuge memory pool.
XREALLOC.CThis file contains the source code for the xrealloc library routine. This routine resizes a previously allocated xhuge memory block.