Views:

Question
Why is WEST upgraded with a new compiler?

Answer
WEST requires that model code is compiled to an executable code. This compilation step requires a C compiler. In the past, only the 32bit version of WEST came with a C compiler in the installer. The 64bit version required the user to install and manage their own C compiler. This meant that extra steps were required after the installation of WEST, which for most users, was not ideal. For example, installing the MSVC compiler from Microsoft.

Benchmarking the performance of the new ZIG compiler with that of the previously recommended MSCV compiler on several WEST models shows some significant improvements. The ZIG compiler generally provides shorter compile times and comparable simulation times, with the main advantage particularly noticeable for large models with many coupled units, as shown in Table 1 below:

Table 1   Benchmark of performance of new ZIG compiler

 ZIG compilerMSVC compiler
ModelCompile (s)Run (s)Compile (s)Run (s)
PWMSA full plant11739967
Granular SBR full plant10439139
Granular CSTR11618377
80 coupled ASU tanks14190>10800 
80 single ASU tanks9792>2700 
40 coupled ASU tanks9291>2160 


 

 

 

 

For the largest models the MSCV compilation was aborted before it could be completed, whereas the ZIG compiler completed in very reasonable times.  With WEST Release 2025 Update 1, all steps are handled directly by the installer while giving the added benefits of an overall increase in compilation and simulation speed.
 

Use case

The value of this feature is 1) no additional work or effort is required by the user during the installation process of WEST, and 2) the compiler is generally faster than other compilers, so the user gets the additional benefit of faster compile and simulation times.
 

 

FURTHER INFORMATION & USEFUL LINKS

[Manuals and User Guides]

WEST - Getting started Tutorial

WEST - User Guide

 

 

Related Products: WEST