| Real-Time Workshop | ![]() |
Compilation and Linking
After completing code generation, the build process determines whether or not to continue and compile and link an executable program. This decision is governed by the following parameters:
grt, grt_malloc, and Real-Time Workshop Embedded Coder target configurations generate a Visual C/C++ project makefile (model.mak). To build an executable, you must open model.mak in the Visual C/C++ IDE and compile and link the model code.
HOST identifies the type of system upon which your executable is intended to run. The HOST variable can take on one of three possible values: PC, UNIX, or ANY.
By default, HOST is set to UNIX in template makefiles designed for use with UNIX (such as grt_unix.tmf), and to PC in the template makefiles designed for use with development systems for the PC (such as grt_vc.tmf).
If Simulink is running on the same type of system as that specified by the HOST variable, then the executable is built. Otherwise:
HOST = ANY, an executable is still built. This option is useful when you want to cross-compile a program for a system other than the one Simulink is running on.
| Making an Executable | Choosing and Configuring Your Compiler | ![]() |