Real-Time Workshop User's Guide    

Automatic Program Building

The Real-Time Workshop automatic program building process creates programs for real-time applications in a variety of host environments. Automatic program building uses the make utility to control the compilation and linking of generated source code.

A high-level M-file command controls the Real-Time Workshop build process. The default command, used with most targets, is make_rtw.

The build process consists of the following steps:

  1. Analysis of the model and compilation of a model description file
  2. Generation of code from the model by the Target Language Compiler
  3. Generation of a makefile, customized for a given build
  4. Creation of an executable program by the make utility under the control of the customized makefile

The shaded box in Figure 2-4 outlines these steps.

Figure 2-4: Automatic Program Building


 Open Architecture of the Real-Time Workshop Steps in the Build Process