Can I compile a standalone executable on a 32-bit platform and run it on a 64-bit platform using MATLAB Compiler?
5 views (last 30 days)
Show older comments
I would like to compile a standalone executable on a 32-bit machine, copy the resulting 32-bit executable, the CTF archive (if available), and the MCR to a 64-bit machine, and execute it.
Accepted Answer
MathWorks Support Team
on 10 Nov 2009
MathWorks has not fully tested executing 32-bit applications compiled with MATLAB Compiler on a 64-bit machine. However, 32-bit application created with it should be able to run in emulation mode. This applies to Windows and UNIX platforms as well.
The process for deploying a 32-bit application onto a 64-bit machine is the same as deploying to a 32-bit machine. Note that you will need to install a 32-bit version of the MATLAB Compiler Runtime (MCR).
A 64-bit distribution of Linux should include 32-bit and 64-bit versions of libc and other libraries, so you should not need to copy any additional libraries to that machine. You can determine all the dependencies of your 32-bit application by using the LDD utility.
If you have the option, it is best to compile your application on the architecture you plan to deploy on, as MathWorks has tested same-architecture combinations more extensively.
0 Comments
More Answers (0)
See Also
See Also
Categories
Find more on Application Deployment in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!