IBM
Contents Index Previous Next



File Structure


An application generated by the Cextreme Code Generator consists and depends on a number of files.

The generated code reflects the contents and behavior of the system described by the SDL model. This code consists of a number of .c and .h files that are put in the target directory (or, in some circumstances, in a subdirectory to the target directory).

In addition to the generated code, there is a number of files that supports the building of an application. These files, and how they should be managed is discussed in this section.

Essential files

Files found in target directory

Depending on the code generation options, files with the following suffixes and extensions might be found in the same directory as the generated C files.

Files found in kernel directory

A number of files are found in the kernel directory, usually located at: <installation_dir>/sdlkernels/cextreme/kernel

Files found in RTOS directory

Note:

The source file and examples for RTOS Integrations are not included in the standard delivery. They are available as free downloads from the IBM Rational Support web site.

In a subdirectory named RTOS/ThreadedIntegrations all the available RTOS (real-time operating system) integrations can be found, each integration in a subdirectory of its own.

Each integration contains two files, rtapidef.h and rtapidef.c. As of today, the following integrations are supported:

Include structure for C files

extreme_kern.h

The top level for definitions is the extreme_kern.h file. This file is included by all .c files and includes in turn a number of other .h files according to the list below.

This file includes:

extreme_kern.c

Include is also used for .c files. In this way the complete kernel will be compiled when the top element, extreme_kern.c, is compiled.


http://www.ibm.com/rational
Contents Index Previous Next