Differences of generated codes between computers
显示 更早的评论
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 个评论
Andreas Goser
2025-3-27
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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!