RTEMS Logo

RTEMS 4.6.2 On-Line Library


How much memory is left in the Heap?

PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

6.3.2: How much memory is left in the Heap?

The C heap is a region so this should work:

(gdb) p *((Region_Control *)_Region_Information->local_table[1])->Memory->first $9 = {back_flag = 1, front_flag = 8058280, next = 0x7ea5b4, previous = 0x7ea5b0}

In this case, the first block on the C Heap has 8,058,280 bytes left.


PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

Copyright © 1988-2004 OAR Corporation