User`s guide

6 Program Architecture
6-2
Introduction
The Real-Time Workshop generates two styles of code. One code style is
suitable for rapid prototyping (and simulation via code generation). The other
style is suitable for embedded applications. This chapter discusses the program
architecture, that is, the structure of the Real-Time Workshop generated code,
associated with these two styles of code. The table below classifies the targets
shipped with the Real-Time Workshop.
Table 6-1: Code Styles Listed By Target
Target Code Style (using C unless noted)
DOS Real-Time Target Rapid prototyping — runs model in
real-time at ISR level under DOS.
Embedded-C Real-Time
Target
Embedded — useful as a starting point
when using the generated C code in an
embedded application.
Generic Real-Time Target Rapid prototyping — nonreal-time
simulation on your workstation. Useful
as a starting point for creating a rapid
prototyping real-time target that does not
use real-time operating system tasking
primitives. Also useful for validating the
generated code on your workstation.
Generic Real-Time Target
with dynamic memory
allocation
Rapid prototyping — very similar to the
generic real-time target except that this
target declares all “model” working
memory using dynamically allocated
memory as opposed to statically declaring
it in advance.
Rapid Simulation Target Rapid prototyping — nonreal-time
simulation of your model on your
workstation. Useful as a high-speed or
batch simulation tool.