User`s guide

2 Getting Started with the Real-Time Workshop
2-16
WhenyouclickontheBuild button in the Simulation Parameters dialog box,
the Real-Time Workshop invokes the
make command, which in turn:
Compiles the block diagram to produce the model.rtw file (in this example,
f14.rtw)
Invokes the Target Language Compiler, which in turn compiles the TLC
program, starting with
grt.tlc, and operates on model.rtw to produce the
generated code
Creates a makefile called
model.mk (e.g., f14.mk) from the template makefile
(e.g.,
grt_vc.tmf)
If Simulink is running on the same host as that specified in the template
makefile, then the program is built. Otherwise, processing stops after
creating the model code and the makefile unless you define the
HOST in the
template makefile to match your target.
The variable
HOST is defined in the template makefile to identify what system
you are targeting. The three options are
HOST=PC, UNIX,orANY.Ifyouwant
to target a system other than the one you’re running on, set
HOST=ANY in the
template makefile (for example, select
ANY if you are targeting a DSP or
microcontroller).
Once you have executed the
Build command, the Real-Time Workshop creates
these files by default:
f14.c — the stand-alone C code
f14.h — an include header file containing information about the state
variables
f14_export.h — an include header file containing information about
exported signals and parameters
f14.reg — an include file that contains the model registration function
responsible for initializing data structures in the generated code
f14.prm an include file that holds information about the parameters used
in the f14 model
f14 on UNIX and f14.exe on PC — the generic real-time executable
Customizing the Build Process
You can choose to inline parameters by clicking the Inline parameters check
box on the Real-Time Workshop page. This directs the Real-Time Workshop to