Main Content

Enable portable word sizes

Portability across development computer and target processors

Model Configuration Pane: Code Generation / Verification

Description

Generate conditional processing macros to support compilation of generated code on your MATLAB® development computer, which can have a different word size than the target processor on which production code is run. This option enables you to use the same generated code for SIL testing on your MATLAB development computer and for production deployment on the target processor. For example, you can perform SIL testing on a 64-bit development computer and deploy the code on a 16-bit target processor.

Dependencies

When you use this option, you must select Test hardware is the same as production hardware on the Hardware Implementation pane.

Settings

off (default) | on

Default: off

On

Generate portable code

Off

Does not generate portable code.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyOff
Safety precautionNo impact

Programmatic Use

Parameter: PortableWordSizes
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2007a