Differences of generated codes between computers
Show older comments
Hello,
when generating code out of a Simulink model by using Autosar app (button generate code) on different computers (both with Matlab R2019b), I observed few deviations.
On the first computer, the generated row is below :
M_TURN_ON(rtb_Merge1, tmp, ((real32_T)C_XXX), &rtb_Merge1, &YYY_DW.time_passed_as2d);
On the second computer, the code is as follows:
Prefix_M_TURN_ON(rtb_Merge1, tmp, ((real32_T)C_XXX), &rtb_Merge1, &YYY_DW.time_passed_as2d);
This "prefix_" added before "M_TURN_ON" is causing issues in the makefiles I am using for the SW compilation.
Same simulink model and data dictionary files are used in both cases. What can I check or do to avoid this behavior?
Thanks in advance
1 Comment
Andreas Goser
on 27 Mar 2025
My intuition says to compare if the same C Compiler is used on both installations and also if you have the same R2019b Updates, however as you make clear this is more than a curiosity question, but hindering your workflow, I recommend contacting MathWorks Technical Support with an example.
Answers (0)
Categories
Find more on Simulink Environment Customization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!