![]() |
![]() |
![]() |
![]() |
![]() |
Introduction
The Cmicro Library is required for handling the SDL objects that have been generated from SDL into C with the Cmicro SDL to C Compiler. This means that the C code which was generated with the Cmicro SDL to C Compiler cannot be used without the Cmicro Library. It also means that the C code generated with Cadvanced cannot be used together with the Cmicro Library and vice versa.
The Cmicro Library is a collection of C functions and C modules which consists of:
- The non preemptive Cmicro Kernel
- The preemptive Cmicro Kernel
- All functions which are necessary to handle SDL data
- Utility functions
The Cmicro preemptive kernel is only available if the according license is available.
Furthermore the Cmicro Library can be instrumented with SDL Target Tester functionality.
Before the Cmicro Library can be used, some adaptations and configurations must be made. The Targeting Expert is a tool which helps in configuring the application, node, component and the SDL Target Tester.
In this chapter, the C source code of the Cmicro Library and the generated C code of an application are described. Although a separate chapter is dedicated to the SDL Target Tester (see The SDL Target Tester), a few features are outlined here. The following topics are discussed:
- The section Differences between Cmicro and Cadvanced helps in taking care of compatibility between different C code generators. There are things which must be observed in SDL diagrams.
- The section The SDL Scheduler Concepts gives information about how the SDL scheduler works. This is also of interest for creating SDL specifications with the most highest conformity because the different SDL schedulers work differently.
- The section Targeting using the Cmicro Package presents all the steps that must be carried out for doing targeting with Cmicro.
- The section Compilation Flags presents a complete list of all the flags that the Targeting Expert recognizes. The different flags are explained in detail.
- The section Adaptation to Compilers must usually be read before the C code generated by the Cmicro SDL to C Compiler and Cmicro Library can be compiled to form an executable. This section outlines the steps that must be carried out for introducing a C compiler which is not in the available list. The Targeting Expert offers an easy to use feature to add a new compiler. Please view Compiler Definition for Compilation.
- The section Bare Integration gives detailed information on how to adapt the generated SDL system to the environment. Communication with handwritten C code, as well as communication between SDL and the operating system or a naked machine, is described here.
- The section File Structure explains the functionality of the different C files delivered with Cmicro.
- The section Functions of the Basic Cmicro Kernel contains a list of C functions that are usually included in a target executable plus a short description.
- The section Functions of the Expanded Cmicro Kernel contains a list of C functions that are usually not included in a target executable. The functions listed in this section can usually be left out because they have meaning for special forms of integration in target systems only. The functions include a short description.
- The section Technical Details for Memory Estimations presents some information to the user which enables him to roughly estimate the consumption of memory in the target system. A self defined benchmark test is included, too.
Pay extra attention to the subsection Automatic Scaling Included in Cmicro, which contains important information on the differences to the Cadvanced Library.
If examples of generated code are given, they are always shown in ANSI style. In addition, only the important parts of the code are shown to increase readability in the examples.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |