User`s guide

3 Code Generation and the Build Process
3-38
File and Function Splitting
To support compilers with file size limitations, the Real-Time Workshop
provides support for splitting the source code whenever the code size exceeds a
specified threshold. This option is available with the generic real-time (
grt),
embedded-C (
ert), and rapid simulation (rsim) targets. These targets support:
File splitting
Function splitting
File and function splitting
Both file and function splitting require at least Perl v5.000. The MathWorks
ships Perl with MATLAB on PC platforms. For UNIX platforms, you must
provide the Perl binary; that is, you must place Perl on your path. Perl is
available from
http://www.perl.com.
File Splitting
Generated source files may have too many lines of code. File splitting provides
a way to reduce file size. You can control file splitting by specifying a function
sizethresholdonthe
Code Generation Options dialog box.
File splitting is controlled by the TLC variable
FileSizeThreshold,whichby
default is set to 5000 lines.
Select File Splitting from the
Function Management pull-down
menu.
Specify the
File Split Threshold.
This can be any positive integer.
The
Show eliminated statements
check box is disabled when file
splitting occurs.