RTEMS Logo

RTEMS 4.6.1 On-Line Library


How do I determine how much memory is left?

PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

6.3: How do I determine how much memory is left?

  • How much memory is left in the RTEMS Workspace?
  • How much memory is left in the Heap?
  • First there are two types of memory: RTEMS Workspace and Program Heap. The RTEMS Workspace is the memory used by RTEMS to allocate control structures for system objects like tasks and semaphores, task stacks, and some system data structures like the ready chains. The Program Heap is where "malloc'ed" memory comes from.

    Both are essentially managed as heaps based on the Heap Manager in the RTEMS SuperCore. The RTEMS Workspace uses the Heap Manager directly while the Program Heap is actually based on an RTEMS Region from the Classic API. RTEMS Regions are in turn based on the Heap Manager in the SuperCore.


    PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

    Copyright © 1988-2004 OAR Corporation