next up previous contents
Next: How to configure the Up: Creation and usage of Previous: Creation and usage of   Contents

How to compile a scheduler module

The first step is to compile DIET activating the "USERSCHED" option. With this option, you'll find a subdirectory "scheduler" in the include directory of the DIET installation. This directory contains all the headers needed to develop the basis class of the scheduler module.

A scheduler module needs to be linked with some libraries to compile:

When using g++ as compiler the option "-shared" has to be used to compile the module under Linux and "-dynamiclib" under Mac OS X. The "-fPIC" has to be used for both operating systems.

The DIET Team - Ven 18 nov 2011 18:13:39 PST