The purpose of code synthesis is to maximize run-time performance. It is always much slower to simulate a model in an interpreted way than to execute the compiled code directly.
A lot of optimization can be done on the models at the time of code synthesis. This issue will be discussed thoroughly in this thesis. In particular, SCC (StateChart Compiler), a code synthesizer for DCharts, is implemented. It is able to generate Java, C++, Python and C# source code from textual DCharts model descriptions.