RTEMS Logo

RTEMS 4.6.5 On-Line Library


When is malloc initialized?

PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

6.2.2: When is malloc initialized?

During BSP initialization, the bsp_libc_init routine is called. This routine initializes the heap as well as the RTEMS system call layer (open, read, write, etc.) and the RTEMS reentrancy support for the Cygnus newlib Standard C Library.

The bsp_libc_init routine is passed the size and starting address of the memory area to be used for the program heap as well as the amount of memory to ask sbrk for when the heap is exhausted. For most BSPs, all memory available is placed in the program heap thus it can not be extended dynamically by calls to sbrk.


PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

Copyright © 1988-2004 OAR Corporation