User`s guide

13 DSP Blockset 4.1 Release Notes
13-8
Better Memory Management for Simulation and Code Generation
Memory management enhancements for S-function block simulation and code
generation now provide simulation code requiring less memory, and smaller
Real-Time Workshop generated C code that is more efficient at run-time.
Memory management enhancements include the use of contiguous input and
output arrays, reusable inputs, overwritable arrays, and in-place algorithms.
New S-Function Simulation Support Directories
Various extensible C-callable library functions, macros, and definitions are
now included in the following directories:
toolbox/dspblks/include — header files (prototypes and definitions)
toolbox/dspblks/src/sim — simulation library source code
toolbox/dspblks/lib — prebuilt library (.lib) files for certain
combinations of platforms and compilers only
Real-Time Workshop Generated C Code
Enhancements
DSP Blockset 4.1 enhancements that provide better Real-Time Workshop
generated C code include the following:
DSP Blockset can now build and link C-callable run-time libraries, providing
for smaller, more efficient Real-Time Workshop generated C code.
The use of run-time parameters in blocks implemented with S-functions (see
“Enhancements to Blocks Implemented with S-Functions” on page 13-7)
provides for the following Real-Time Workshop generated C code
enhancements for blocks implemented using S-functions:
- Parameter values are organized in a common structure.
- Parameter values are located in a common header file (for example,
<model>_prm.h).
- Redundant copies of parameter values are reused or “pooled” in
<model>_prm.h (when there are multiple instances of a block with the
same run-time parameter values).