User`s manual

SCIOPTA - Real-Time Kernel
User’s Manual Manual Version 4.1 15-11
SCIOPTA - Real-Time Kernel
15 Building SCIOPTA Systems
15.7.2.2 Module Sizes
The sizes used by SCIOPTA of each module must be defined by the user in the linker script. This size determines
the memory which will be used by SCIOPTA for message pools, PCBs and other system data structures.
The name of the size is usually defined as follows: <module_name>
_size
The module name for the system module is sy
stem.
Typical definitions (for modules system, dev, ip
s and user) might look as follows:
system_size = 0x4000;
dev_size = 0x4000;
ips_size = 0x4000;
user_size = 0x4000;
size calculation:
size_mod = p * 256 + stack + pools + mcb + textsize
where:
p Number of static processes
stack Sum of stack sizes of all static
processes
pools Sum of sizes of all message pools
mcb module control block = 200 bytes
textsize Size of the memory which is initialized by the C-Startup function (cstartup.S)
Please consult the configuration chapter (SCONF ut
ility) of the SCIOPTA Kernel, User’s Guide for information
about friend and hook settings.