Documentation

xpcsetCC

Compiler settings for Simulink Real-Time environment (not recommended)

Syntax

xpcsetCC('setup')
xpcsetCC('location')
xpcsetCC('type')
xpcsetCC(type,location)

Description

xpcsetCC('setup') queries the development computer for installed C compilers that the Simulink® Real-Time™ environment supports. You can then select the C compiler.

    Note:   Command xpcsetCC will be removed in a future release. Use slrtsetCC instead.

xpcsetCC('location') sets the compiler location.

xpcsetCC('type') sets the compiler type. 'type' must be VISUALC, representing the Microsoft® Visual Studio® C compiler.

xpcsetCC(type,location) sets the compiler type and location.

The command mex -setup sets the default compiler for Simulink Real-Time builds, provided the MEX compiler is a supported Microsoft compiler. Use xpcsetCC -setup only if you need to specify different compilers for MEX and Simulink Real-Time.

To return to the default compiler from a setting by xpcsetCC, type xpcsetCC('VisualC',''), setting the compiler location to the empty string.

See Also

Was this topic helpful?