![]() |
![]() |
![]() |
![]() |
![]() |
C Code Generation
Although the C code generation is a highly automated activity, there are several ways of customizing the generated code. Some examples are:
- Generating separate C files for different SDL structural entities
- Assigning priorities to processes to enable scheduling (which is undefined in SDL)
- Making a user-defined implementation for the handling of certain signals
- Making a user-defined main-loop (run-time system) in the generated application
Separation of the C files is recommended for large systems, since a minor, local change in for example a block diagram only requires a regeneration and recompilation of the code for that unit. The object files (the compiled versions of the C files) for the other unchanged units can then be used in the link operation to form a new executable program. Thus, the turn-around time from a change in the design to an executable application is minimized.
When doing a customization of the code, it is important that this is done in a way that keeps maintenance of the design easy.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |