Download 57 The Cadvanced/Cbasic SDL to C Compiler

Transcript
Chapter
57
The Cadvanced/Cbasic SDL to C Compiler
Introduction
Application Areas for the Cadvanced/Cbasic
SDL to C Compiler
There are a number of application areas for the Cadvanced/Cbasic SDL
to C Compiler, for example:
•
Functional simulation and debugging of protocol specifications
•
Debugging of system designs described in SDL
•
Generation of applications, including embedded system applications with real time characteristics
•
Performance simulations
•
Simulation of the behavior behind a user interface prototype
In this part of the manual, the general behavior of the code generator and
its application for simulation and debugging are discussed. The possibility to generate simulators is described in chapter 50, The SDL Simulator.
Functional Simulation and Debugging
During the validation of a specification or design of an application expressed in ITU SDL, you can use the Cadvanced/Cbasic SDL to C Compiler as a tool for simulation to help you understand and debug the behavior of a system description. (See chapter 50, The SDL Simulator.)
Errors arising from two different areas have to be considered in the validation process. In the language domain, errors due to illegal or illogical
usage of the language concepts might be introduced into the specification; while in the problem domain, logical errors might be introduced.
With traditional computer program development, most illegal uses of
language concepts are found by compilers or by run-time systems. Examples are syntax errors, missing declarations, division by zero, or indexing an array out of its bounds.
In the problem domain, however, the only feasible ways of detecting
logical errors in non-trivial programs are testing and proofreading.
When it comes to specifications in SDL, language domain errors can be
2562
,um-st1
Telelogic Tau 4.5 User’s Manual
July 2003