Are different matlab versions able to employ different matlab compilers?

3 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Walter Roberson
Walter Roberson il 9 Mag 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.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by