Compiler

The Compiler options let you customize compilation for simulation in the Dymola Behavior Modeling app, Behavior Experience app, or the Functional & Logical Design app.

Select this tab to access options for:

This page discusses:

C Compiler

Select the compiler version to compile the Modelica code before a virtual execution.

An unavailable compiler option indicates that the compiler version is not installed on the computer.

Important: For detailed information about compilers, see Program Directories for the Dymola Behavior Modeling app. You require a 3DPassport to display this page.
Visual Studio 2010 (10.0)
The default access path locates this version.
The following versions are supported:
  • Visual C++ 2010 Professional (10.0)
  • Visual C++ 2010 Express (10.0)
Visual Studio 2012 (11.0)
The default access path locates this version.
The following versions are supported:
  • Visual C++ 2012 Professional (11.0)
  • Visual C++ 2012 Express (11.0)
Visual Studio 2013 (12.0)
The default access path locates this version.
The following versions are supported:
  • Visual C++ 2013 Professional (12.0)
  • Visual C++ 2013 Express (12.0)
Visual Studio 2015 (14.0)
The default access path locates this version.
The following versions are supported:
  • Visual C++ 2015 Professional (14.0)
  • Visual C++ 2015 Express (14.0)
Visual Studio 2017 (15)
The default access path locates this version.
The following versions are supported:
  • Visual C++ 2017 Professional (15)
  • Visual C++ 2017 Community (15)
Customized Visual Studio Path
If the Visual Studio is not stored in the default path, select this preference and browse for the access path.
Intel Parallel Studio XE (Embedded server not supported)
The Intel Parallel Studio 2016 and 1017 XE compilers are supported.
If you select this option, you must:
  1. Browse for the path to the compiler, if it is not located in the default path.
  2. Select a Visual Studio version. You can select any of the following:
    • Visual Studio 2010 (10.0)

      The following versions are supported:

      • Visual C++ 2010 Professional (10.0)
      • Visual C++ 2010 Express (10.0)

    • Visual Studio 2012 (11.0)

      The following versions are supported:

      • Visual C++ 2012 Professional (11.0)
      • Visual C++ 2012 Express (11.0)

    • Visual Studio 2013 (12.0)

      The following versions are supported:

      • Visual C++ 2013 Professional (12.0)
      • Visual C++ 2013 Express (12.0)

    • Visual Studio 2015 (14.0)

      The following versions are supported:

      • Visual C++ 2015 Professional (14.0)
      • Visual C++ 2015 Express (14.0)

MinGW GCC Full Path
Select this option to use MinGW GCC. After selection, you must select 32/64-bit versions:
  • 32-bit Select this option to use a 32-bit GCC compiler. If the MinGW executable is not stored in the default path, browse for the full access path. For example: C:\MinGW\bin\gcc.exe.
  • 64-bit Select this option to use a 64-bit GCC compiler. If the MinGW executable is not stored in the default path, browse for the full access path. For example: C:\MinGW64\bin\gcc.exe.
Note: You might need both compilers, for example, if you want to export an FMU as both a 32-bit and a 64-bit executable.

By default, Visual Studio 2015 (14.0) is selected.

Custom Options

You can enter compiler and linker options. These options are for advanced users.

Verify Compiler Setup

Click Test Compiler to test the selected compiler. See Reference Information: Compilers for more information.

External C Function Compilation

When simulating a Modelica model using external C function compilation, you need to enter the path to the directories containing your files.

External C functions directory path(s)
Type the paths separated by a semicolon (";").
Note: You can browse for the first path.
External libraries directory path(s)
Type the paths separated by a semicolon (";").
Note: You can browse for the first path.
Note: You can compile external C functions without using these preferences. See Managing Classes: Calling External C Functions in a Function for more information about the alternative.