![]() |
![]() |
![]() |
![]() |
![]() |
Annex 2: Integration for VxWorks
Introduction
This annex describes briefly the VxWorks models and primitives used in the SDL Suite VxWorks tight integration. The presentation is focused on the differences from the general model described earlier in this chapter.
One section describes how to set up and run a simple test example in both a light and tight integration.
Principles
This integration has been developed with VxWorks Tornado 1.0 under VxSim version 5.3 on a Sun workstation with SunOS 4.1.4.
The main differences between VxWorks and the general model are:
- The VxWorks msgQReceive copies the Signal into a buffer when it is received. The sender makes free of the signal immediately after it has been sent and the receiver allocates a buffer (signal) before a receive statement.
- An extra optimization flag XOPTSIGNALALLOC has been introduced for the VxWorks tight integration. When freeing a signal's memory, we place it in an availlist so that subsequent signal memory allocation calls can check to see if suitable sized memory already exists which may be reused. Otherwise memory is allocated as normal.
Running the Test Example: Simple
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.
Prerequisites
This test example is developed as a VxWorks Tornado application on a Sun workstation. The makefile and compilation switches are set up for the application to run under an VxSim target simulator. If you are using another configuration of VxWorks you probably need to edit the provided makefile.
A VxWorks application is not allowed to contain a main function. The name of the generated main is changed to "root" with the compilation switch -DXMAIN_NAME=root.
Light Integration
Limitations for the Light Integration
Building a Light Integration
Please see the Building and Running a Light Integration for instructions.
Tight Integration
Limitations for the Tight Integration
Please read the Release Guide for details about limitations that apply to all systems using Tight Integration.
Building a Tight Integration
Please see the Building and Running a Tight Integration for instructions.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |