User`s guide

12 Configuring Real-Time Workshop for Your Application
12-12
Real-Time malloc Code Format
The real-time malloc code format (corresponding to the generic real-time
malloc target) is very similar to the real-time code format. The differences are:
Real-time
malloc declares memory dynamically.
Real-time
malloc allows you to multiply instance the same model with each
instance maintaining its own unique data.
Real-time
malloc allows you to combine multiple models together in one
executable. For example, to integrate two models into one larger executable,
real-time
malloc maintains a unique instance of each of the two models. If
you do not use the real-time
malloc format, the Real-Time Workshop will not
necessarily create uniquely named data structures for each model,
potentially resulting in name clashes.
grt_malloc_main.c, the main routine for the generic real-time malloc
(grt_malloc) target, supports one model by default. Youmustmodifyitto
fit your particular multimodel scenario.
grt_malloc_main.c is located in the
directory
matlabroot/rtw/c/grt_malloc.
Unsupported Blocks
The real-time malloc format does not support the following built-in blocks:
Functions & Tables
- MATLAB Fcn
- S-Functions — M-file and Fortran S-functions, C MEX S-functions that
call into MATLAB.
System Target Files
grt_malloc.tlc
tornado.tlc — Tornado (VxWorks) real-time target