Download Integration with Operating Systems
Transcript
,QWURGXFWLRQ ,QWURGXFWLRQ The code that is generated by the Cadvanced SDL to C compiler is designed to run on different platforms. This is done by letting all platform dependent concepts be represented by C macros that can be expanded appropriately for each environment. There are also types used in the generated code that have to be defined. Integration, as referred to in this chapter, is the process of adapting the generated code to a certain platform. This chapter describes the different models that are supported in Telelogic Tau. 1RWH Throughout this chapter, annexes excluded, VxWorks terminology has been used whenever there are differences between operating systems. Particularly, this means that the term WDVN has been used on several occasions. The corresponding term would be WKUHDG for Win32 and Solaris, SURFHVV for OSE Delta, and WDVN for Nucleus. 'LIIHUHQW,QWHJUDWLRQ0RGHOV With Cadvanced, there are three different run-time models, called Light Integration, Threaded Integration and Tight Integration. Tight integrations are then divided into two submodels, the Standard model and the Instance-Set model. All models use the same generated code. You will find descriptions of the different models below, as well as guidelines for choosing between them. /LJKWLQWHJUDWLRQ The simplest case is called a Light integration because only a minimum of interaction with the operating system is required; a Light integration could even run on a target system without any OS at all. The complete SDL system runs as a single OS task. Scheduling of SDL processes is handled by the standard kernel, running a complete state transition at a time (no preemption). Worst case scheduling latency is thus the duration of the longest transition. Communication between SDL processes is handled by the kernel; communication between the SDL system and the environment is handled in July 2003 Telelogic Tau 4.5 User’s Manual ,um-st1