User`s guide

1 Introduction to the Real-Time Workshop
1-16
options, and additional information for the destination (target) of the
generated executable.
The
model.mk file is created by copying the contents of system.tmf and
expanding out tokens describing your model’s configuration. You can fully
customize your build process by modifying an existing template makefile or
providing your own template makefile.
After the
model.mk file is created, the make command is invoked to create your
executable.
make can also optionally download the executable to your target
hardware.
After downloading the file to the target hardware, if you are using external
mode, you can connect back with Simulink to tune your model's parameters
while the code is running on your target hardware.
Files Created by the Build Procedure
Each of the model.* files performs a specific function in the Real-Time
Workshop:
model.mdl, created by Simulink, is analogous to a high-level programming
language source file.
model.rtw, created by the Real-Time Workshop build process, is analogous
to the object file created from a high-level language.
model.c, created by the Target Language Compiler, is the C source code
corresponding to the
model.mdl file.
model.h, created by the Target Language Compiler, is a header file that
maps the links between blocks in the model.
model_export.h, created by the Target Language Compiler, is a header file
that contains exported signal, parameter, and function symbols.
model.prm, created by the Target Language Compiler, contains the
parameter settings of the blocks in the model.
model.reg, created by the Target Language Compiler, contains the model
registration function responsible for model initialization.