Real-Time Workshop    

Summary of Files Created by the Build Procedure

The following is a list of the model.* files created during the code generation and build process for the GRT and GRT malloc targets. Many of the files derive from model.mdl, created by Simulink, which you can think of as a very high-level programming language source file. Files generated for embedded applications by Real-Time Workshop Embedded Coder are packaged slightly differently. Depending on model architectures and code generation options, other files may also be created by the build process:

In addition, for each build when the HTML report option is selected, a set of .html files (one for each source file plus a model_contents.html index file) is generated in the /html subdirectory within your build directory.

For more information, see Generated Source Files of the Real-Time Workshop documentation.

Overview of a model.rtw File

This section examines the basic features of a model.rtw file, which serves as input to the code generation process. The .rtw file shown is generated from the source model shown below.

This model is saved in a file called example.mdl. Real-Time Workshop generates example.rtw., an ASCII file by compiling the model into structured records from which code can be generated. The example.rtw file consists of parameter name/parameter value pairs, stored in a hierarchical structure of nested text records.

Below is an excerpt from example.rtw. The majority of lines have been elided to highlight on the structure of the file rather than its specific contents. You can find a more extensive example of a model.rtw file in the Code Generation Architecture" section of the Target Language Compiler documentation.

For more information on these files, see the Appendix A of the Target Language Compiler documentation, which details all records comprising model.rtw files. The documentation also provides tutorials on processing such record files.

Directories Used in the Build Process

Real-Time Workshop creates output files in two directories during the build process:

The build directory always contains the generated code modules model.c, model.h, and model_export.h, and the generated makefile model.mk.

Depending upon the target and code generation and build options selected, additional files in the build directory may include


  4. Create the Executable Working with Real-Time Workshop