About eFMU Algorithm Code to Component Generator

You can convert an eFMU component containing algorithm code (written in Galec format) to eFMU Production code (written in C).

For this operation, the input is an eFMU containing an algorithm code and the output is an eFMU containing an algorithm code and a production code (manifest and C code).

For more information about eFMU components, see this website: https://www.efmi-standard.org/.

This page discusses:

Algorithm Code

The algorithm code representation describes the mathematical model in a target and implementation-independent fashion. It describes the model as input/output, sampled data block with one fixed or variable sample time using the GALEC (Guarded Algorithmic Language for Embedded Control) language. The GALEC programming language is part of the eFMI standard and serves as an intermediate representation between the modeling and embedded programming domains.



The execution of the algorithm described by the GALEC code on an embedded target requires suitable production code (usually C or C++ code).

Production Code

The production code representation allows you to ship C code either as nearly target-independent generic code or as highly optimized target-specific code. The software production operation parses an eFMU component and detects if it contains an algorithm code. The operation then generates a new FMU with an equivalent production code in C format.

eFMU Generators Workflow

This diagram describes the tools used for transforming the eFMU code before executing an eFMU model in a target environment.