 | Cx51 User's Guide |  |
|
|
| Source CodeSource code is provided (in the \KEIL\C51\LIB folder) for the following library routines: | Library Routine | Filename | Description |
|---|
| calloc | calloc.c | Allocates memory for an array of elements. | | free | free.c | Releases memory allocated with calloc, malloc, or realloc. | | _getkey | getkey.c | Waits for a character to be received from the standard 8051 serial port. | | init_mempool | init_mem.c | Initializes the memory pool used by the calloc, free, malloc, and realloc routines. | | malloc | malloc.c | Allocates a memory block from the memory pool. | | putchar | putchar.c | Transmits a character using the standard 8051 serial port. | | realloc | realloc.c | Changes the size of a previously allocated memory block. |
You may modify these routines and substitute them for the default routines stored in the library. |
|