Cx51 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.