Changing compiler produces model errors that were not found before
2 次查看(过去 30 天)
显示 更早的评论
I have been compiling my model several times without errors, and now that I have changed my compiler (using mex -setup )I have got error that I haven't seen before. Some of them make sense , like dividing by zero, but How this error was not detected before?
0 个评论
回答(1 个)
Keshav
2023-7-31
Changing your compiler in MATLAB can lead to different behavior in how your code is compiled and executed due to variations in compiler behavior and settings. Different compilers may apply different optimization techniques that impact the execution of your code. Each compiler may have its own set of rules. If your code relies on behavior specific to a particular compiler, changing the compiler may expose errors or inconsistencies.
You can look at all the compiler configuration using the command
coder.mexconfig
You can read more about this command on the below MathWorks documentation.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!