Working with model diagrams : Preferences : Build

Preferences dialogue box : "Build" settings

Use which C++ compiler

To run a Simile model at maximum speed, it is converted into a c++ program. This program must then be compiled into executable code. The Windows and (as of release 5.4) Mac versions of Simile include a compiler (GNU g++) and associated tools to allow the code to be created without anything else being installed. This is the 'Default' compiler choice.

The Linux version does not include a c++ compiler; there must be one present on your system. Most Linux machines have one already, and if you do not, it should be simple to add it via your distribution's package management tools. This preference option does not appear on Linux.

Even if you have a built-in compiler, you may wish to use another that is present on your system. This choice allows you to do so. Models can be compiled and linked using either Microsoft Visual C++ (Windows only, any 32-bit version) or GNU G++ (version 2.95.2 or later). The GNU compiler is included in the XCode Tools for the Mac.

Important: The default compiler in the Mac version will only work on OSX 10.5 or later. If you have OSX 10.4 or earlier and want to run models at full speed, you must install the XCode Tools (either from your installation disk or available online from Apple Developer Connection) and set this option to GNU. Alternatively, run models slowly using the "Debug" menu entry.

Pause to edit c++ code

This option allows you to look at, and perhaps modify, the c++ program generated by Simile before it is compiled. This can be educational, and allows you to include the model source code in other tools. Because it is primarily used for debugging, this option also turns on various other messages relating to code generation.

In: Contents >> Working with model diagrams >> Preferences