Plecs code generation (C2000 Package)

Hi,

I am using PLECS C2000 Target Code generation feature from model and I am not sure about one thing.

Why content of main source file is changed every time, when code is generated, even if there is no any change made in model?

Best regards
Dawid

The generated code is not just a function of the *.plecs model file. Regarding the model itself, there can be dependencies on external code such as *.m files that are run as part of initialization or files that are included in C-Scripts.

The generated C code also is a strong function of Lua scripts which could be modified externally as well.

These are reasonable justifications for regenerating the code on every build, even if the *.plecs model itself remains unmodified.