RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


How much memory is left in the RTEMS Workspace?

PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

6.3.1: How much memory is left in the RTEMS Workspace?

An executive workspace overage can be fairly easily spotted with a debugger. Look at _Workspace_Area. If first == last, then there is only one free block of memory in the workspace (very likely if no task deletions). Then do this:

(gdb) p *(Heap_Block *)_Workspace_Area->first $3 = {back_flag = 1, front_flag = 68552, next = 0x1e260, previous = 0x1e25c}

In this case, I had 68552 bytes left in the workspace.


PREV UP NEXT Bookshelf RTEMS Frequently Asked Questions

Copyright © 1988-2004 OAR Corporation