Effacer les filtres
Effacer les filtres

Are different matlab versions able to employ different matlab compilers?

3 vues (au cours des 30 derniers jours)
I want to compile an .exe to work on a system with an older MCR installed. I am not allowed to install newer MCR versions on this system. I have the newest MATLAB version installed on my pc. Why can't I go to the Archives and install only the previous Matlab compiler that is capable with the required MCR? Do I really need to install a whole new version of Matlab? Bonus Question: Some previous versions of the matlab compiler(i.e. R2010a) require other compilers in order to run if I understand correctly from all the forums i've been reading. Why Don't matlab compilers act as standalone compilers running without the help of other compilers... Maybe I'm misunderstanding something.

Réponse acceptée

Walter Roberson
Walter Roberson le 9 Mai 2018
"Do I really need to install a whole new version of Matlab? "
Yes, along with any toolboxes used by the code you need to compile.
"Why Don't matlab compilers act as standalone compilers running without the help of other compilers"
Because it is not an efficient use of resources. The code generated by MATLAB passes through optimization and linking stages, including creation of any appropriate debugging tables, and has to be compatible with the native object file format for the operating system being used. It is not efficient for Mathworks to develop their own C and C++ compilers and build them into a Mathworks product: it is much more efficient to use compilers that have been developed and debugged by other people. Compilers are not just things that translate directly into machine code: compilers also include a heck of a lot of work on header files and libraries.
As far as I can recall, each MATLAB version has always supported at least one no-charge third-party C compiler on each operating system -- SDK 7.1, XCode, gcc for example. The 32 bit MATLAB came with lcc-w32, which was not as good of an optimizer as others and which did not support parallel processing.
  1 commentaire
Benjamin Hardy
Benjamin Hardy le 10 Mai 2018
Thank you Walter, Things are making more sense to me now! P.S. you're a matlab LEGEND

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by