Are different matlab versions able to employ different matlab compilers?

3 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2018-5-9
"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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by