Borrar filtros
Borrar filtros

Changing compiler produces model errors that were not found before

4 visualizaciones (últimos 30 días)
TeraWatt
TeraWatt el 25 de Jul. de 2023
Respondida: Keshav el 31 de Jul. de 2023
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?

Respuestas (1)

Keshav
Keshav el 31 de Jul. de 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.

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by