Clear Filters
Clear Filters

Changing compiler produces model errors that were not found before

4 views (last 30 days)
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?

Answers (1)

Keshav
Keshav on 31 Jul 2023
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.

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!