MATLAB: Is it possible to create a 32-bit standalone on a 64-bit Windows operating system with MATLAB Compiler 4.14 (R2010b)

32bit64bitcompiledeploymentdlllibraryMATLAB Compilermbuildmccsharedwin32win64

I have installed a 32-bit version of MATLAB on supported 64-bit Windows operating system and I would like to create a 32-bit standalone application with MATLAB Compiler so I can deploy the application to other machines running 32-bit versions of Windows.
Is this a supported workflow?

Best Answer

This change has been incorporated into the documentation in Release 2011a (R2011a). For previous releases, read below for any additional information:
This enhancement has been incorporated in Release 2010b (R2010b). For previous product releases, read below for any possible workarounds:
As of R2010b, it is now a supported workflow to create a 32-bit application using a 32-bit installation of MATLAB and the MATLAB Compiler on a 64-bit system. Please see the documentation page of MCC and DEPLOYTOOL for more details.
However, starting in R2016a, applications, components, and libraries created by MATLAB Compiler or MATLAB Compiler SDK will not run in 32-bit mode. For further information, please refer to the following URL.
For R2010a and previous releases, it is not possible to compile a 32-bit application on a 64-bit machine using MATLAB Compiler. The underlying architecture is checked during the build process by the MBUILD command and an error should be thrown if the development (underlying) and the target architectures are different. This is true even if 32-bit version of the MATLAB Compiler is used on the 64-bit machine.
There are no workarounds.