slrtgetCC

Compiler settings for development computer environment

Syntax

slrtgetCC
type = slrtgetCC
type = slrtgetCC('Type')
location = slrtgetCC('Location')
[type,location] = slrtgetCC
slrtgetCC('supported')
slrtgetCC('installed')
[compilers] = slrtgetCC('installed')

Description

example

slrtgetCC displays the compiler type and location in the Command Window.

In a future release, the slrtsetCC and slrtgetCC functions will be removed.

Use the mex command.

example

type = slrtgetCC and type = slrtgetCC('Type') both return the compiler type in type.

example

location = slrtgetCC('Location') returns the compiler location in location.

The mex -setup command sets the default compiler for Simulink® Real-Time™ builds, provided the MEX compiler is a supported Microsoft® compiler. slrtgetCC returns the result of the slrtsetCC command only, not the result of the mex command. If slrtgetCC returns an empty character vector as location, Simulink Real-Time is using the MEX compiler.

example

[type,location] = slrtgetCC returns the compiler type and its location in type and location.

example

slrtgetCC('supported') displays the compiler versions supported by the Simulink Real-Time environment.

example

slrtgetCC('installed') displays the supported compilers installed on the development computer.

[compilers] = slrtgetCC('installed') returns in a structure the supported compilers installed on the development computer.

Examples

collapse all

slrtgetCC
Compiler Settings:

	Type = VisualC
	ocation = C:\Program Files (x86)\Microsoft Visual Studio 14.0\
type = slrtgetCC('Type')
type =

VisualC
location = slrtgetCC('Location')
location =

'C:\Program Files (x86)\Microsoft Visual Studio 14.0\'
[type, location] = slrtgetCC
type =

    'VisualC'


location =

    'C:\Program Files (x86)\Microsoft Visual Studio 14.0\'
slrtgetCC('supported')
List of C++ Compilers supported by Simulink Real-Time:

Name                                              Version        Service Packs
Microsoft Visual Studio 2015                      14.0                        
Microsoft Visual Studio 2017                      15.0                        
2015 toolset in Microsoft Visual Studio 2017      14.0                        
slrtgetCC('installed')
List of installed C++ Compilers:

Name: Microsoft Visual Studio 2015                
Location: C:\Program Files (x86)\Microsoft Visual Studio 14.0\
[compilers] = slrtgetCC('installed')
compilers(1)
compilers = 

  struct with fields:

        Type: 'VisualC'
        Name: 'Microsoft Visual Studio 2015'
    Location: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\'


ans = 

  struct with fields:

        Type: 'VisualC'
        Name: 'Microsoft Visual Studio 2015'
    Location: 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\'

Output Arguments

collapse all

Simulink Real-Time supports the Microsoft Visual Studio® C compiler only.

Introduced in R2014a