Documentation

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
	Location = C:\Program Files (x86)\Microsoft Visual Studio 10.0
type = slrtgetCC('Type')
type =

VisualC
location = slrtgetCC('Location')
location =

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

VisualC


location =

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

Name                                              Version   Service
                                                            Packs
Microsoft Visual C++ Compilers 2008               9.0       1
Microsoft Visual C++ Compilers 2010               10.0      1
Microsoft Visual C++ Compilers 2012               11.0
Microsoft Visual C++ Compilers (Windows SDK) 2010 10.0      1
slrtgetCC('installed')
List of installed C++ Compilers:

Name: Microsoft Visual C++ Compilers 2008 Professional Edition 
      (SP1)
Location: c:\Program Files (x86)\Microsoft Visual Studio 9.0

Name: Microsoft Visual C++ Compilers 2010 Professional
Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
[compilers] = slrtgetCC('installed')
compilers(1)
compilers = 

1x2 struct array with fields:

    Type
    Name
    Location

ans = 

        Type: 'VisualC'
        Name: 'Microsoft Visual C++ Compilers 2008 Professional 
               Edition (SP1)'
    Location: 'c:\Program Files (x86)\Microsoft Visual Studio 9.0'

Output Arguments

collapse all

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

Introduced in R2014a

Was this topic helpful?