Footprint

Home Intro APIs Source Platforms Licensing FAQ News Acknowledgements


Up

SourceForge Logo

Example RAM/ROM Footprint for the XMK Scheduler

The following is a detailed RAM/ROM usage analysis for the example XMK Scheduler project: .../kernel/simple.

XMK Scheduler Configuration Options
USE_XMK_CORE_KERNEL - Minimal Kernel Services only
 
Platform
H8/300L using Hitachi's HEW2 Tiny C/C++ compiler.  The H8/300L MCUs has 8 16bit GP registers with one of registers functioning as the stack pointer.
 
Summary Memory Usage
Kernel ROM:= 336 bytes with no interrupts service routines.
Kernel RAM:=  18 bytes amount with zero application threads or no interrupt stack.

Details

XMK RAM Usage
Component Num Bytes
Minimum RAM required per application thread to support context switching 18
Interrupt stack overhead 4
Thread Control Block 3
Scheduler 7
TCB & Stack for the Idle thread 11

XMK ROM Usage
Component Num Bytes
Scheduler 336
Overhead per ISR 34

Application RAM Usage
Component Num Bytes
Number of threads 3
Number of interrupt service routines 1
Application stack space per thread 40
Interrupt stack space required 10

Totals
Component Num Bytes
XMK Ram 18+(3*3)
XMK required stack space 18*3
Application stack space 40*3
Interrupt stack 4+10
Total XMK RAM 215
   
XMK ROM 336
XMK interrupt service routines ROM 34*1
Total XMK ROM 360

[Home] [Intro] [APIs] [Source] [Platforms] [Licensing] [FAQ] [News] [Acknowledgements][Site Map]
Send mail to webmaster@shift-right.com with questions or comments about this web site.
Copyright © 2004 Shift-Right Technologies, LLC
Last Modified: Friday, November 26, 2004