| Contents | Index |

| On this page… |
|---|
Control the code created by Simulink® Coder™ code generation software for a Real-Time Windows Target application.
To enable the xPC Target™ options pane, select rtwin.tlc for the System target file parameter on the code generation pane.
Specify a floating-point math library extension.
Default: C89/C90 (ANSI)
Generates calls to the ISO/IEC 9899:1990 C standard math library for floating-point functions.
Generates calls to the ISO/IEC 9899:1999 C standard math library.
Generates calls to the GNU gcc math library, which provides C99 extensions as defined by compiler option -std=gnu99.
Generates calls to the ISO/IEC 14882:2003 C++ standard math library. This setting is visible only if you selected C++ for the Language parameter on the Code Generation pane of the Configuration Parameters dialog box.
Before setting this parameter, verify that your compiler supports the library you want to use. If you select a parameter value that your compiler does not support, compiler errors can occur.
Restriction — Stateflow® software supports only C89/C90 (ANSI). Selecting a different parameter has no effect on code generated for Stateflow components.
| Parameter: TargetFunctionLibrary |
| Type: string |
| Value: 'ANSI_C' | 'C99 (ISO)' | 'GNU99 (GNU)' | 'C++ (ISO)' |
| Default: 'ANSI_C' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Safety precaution | No impact |
Specify the location for generating shared utility code
Default: Auto
Operates as follows:
When the model contains Model blocks, place utility code within the slprj/target/_sharedutils folder.
When the model does not contain Model blocks, place utility code in the build folder (generally, in model.c or model.cpp).
Directs code for utilities to be placed within the slprj folder in your working folder.
| Parameter: UtilityFuncGeneration |
| Type: string |
| Value: 'Auto' | 'Shared location' |
| Default: 'Auto' |
| Application | Setting |
|---|---|
| Debugging | Shared location |
| Traceability | Shared location |
| Efficiency | Shared location |
| Safety precaution | No impact |
Instruct the C compiler to generate real-time code fully optimized for speed.
Default: on
| Parameter: CCOptimize |
| Type: Boolean |
| Value: on | off |
| Default: on |
| Application | Setting |
|---|---|
| Debugging | Off |
| Traceability | Off |
| Efficiency | On |
| Safety precaution | On |
Instruct the C compiler to generate assembly listings for the generated code.
Default: off
| Parameter: CCListing |
| Type: Boolean |
| Value: on | off |
| Default: off |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Force all the object files to always be rebuilt regardless of their time stamps.
Default: off
Rebuilds all object files at every build.
Rebuilds only object files whose time stamps show they are outdated.
| Parameter: RebuildAll |
| Type: Boolean |
| Value: on | off |
| Default: off |
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No impact |
| Efficiency | No run-time impact. (Build may take longer.) |
| Safety precaution | On |
Enable client/server communication between Simulink software and an application.
Default: on
This check box is selected by default and grayed out.
Selecting External mode enables:
Transport layer
MEX-file arguments
Static memory allocation
| Parameter: ExtMode |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'on' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Creating a TCP/IP Transport Layer for External Communication
Specify the transport protocol for external mode communication.
Default: sharedmem
The MEX-file name displayed next to Transport layer cannot be edited in the Configuration Parameters dialog box.
For targets provided by The MathWorks, like Real-Time Windows Target, the MEX-file name is specified in:
matlabroot/toolbox/simulink/simulink/extmode_transports.m
This parameter is enabled by checking External Mode.
| Parameter: ExtModeTransport |
| Type: integer |
| Value: 0 |
| Default: 0 |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify external mode MEX arguments.
Default: ''
For a shared memory transport, rtwinext allows two optional arguments. The arguments are positional, so the first argument must appear if the second appears.
An argument that is currently unused. Specify '' for this argument if necessary.
An argument that specifies verbosity. Specify 0 for Nonverbose, or 1 for Verbose.
The default is Nonverbose mode (0). To specify Verbose mode, set MEX-file arguments to:
'' 1
where '' is the empty string and 1 specifies Verbose mode.
This parameter is enabled by checking External Mode.
| Parameter: ExtModeMexArgs |
| Type: string followed by integer |
| Value: '' | '' 0 | '' 1 |
| Default: '' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Control the memory buffer for external mode communication.
Default: off
Enables the Static memory buffer size parameter to allocate dynamic memory.
Uses a static memory buffer for external mode instead of allocating dynamic memory (calls to malloc).
To determine how much memory you need to allocate, enable verbose mode on the target to display the amount of memory it tries to allocate and is available.
This parameter is enabled by checking External Mode.
This parameter enables Static memory buffer size.
| Parameter: ExtModeStaticAlloc |
| Type: string |
| Value: 'on' | 'off' |
| Default: 'off' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
External Mode Interface Options
Specify the memory buffer size for external mode communication.
Default: 1000000
Enter the number of bytes to preallocate for external mode communications buffers in the target.
If you enter too small a value for your application, external mode issues an out-of-memory error.
To determine how much memory you need to allocate, enable verbose mode on the target to display the amount of memory it tries to allocate and is available.
This parameter is enabled by Static memory allocation.
| Parameter: ExtModeStaticAllocSize |
| Type: integer |
| Value: Any valid size |
| Default: 1000000 |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
External Mode Interface Options
![]() | Configuration Parameters |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |