Clear Filters
Clear Filters

Wrapper to run 32-Bit mex files on 64-Bit MATLAB

4 views (last 30 days)
I know its not possible to directly run a mex32 on a 64 Bit MATLAB. However, is it possible to build a wrapper that communicates with the mex32 bit on one end and with the 64 Bit MATLAB on the other end? Kind of like what WOW64 does when running 32 Bit applications on 64 bit Windows.

Answers (1)

James Tursa
James Tursa on 6 Oct 2020
Edited: James Tursa on 7 Oct 2020
32-bit mex files are not standalone code. They interact with 32-bit MATLAB library code which interacts with the 32-bit MATLAB memory manager which is supposedly attached to your 32-bit MATLAB session. And the internals of a 32-bit mxArray don't match the internals of a 64-bit mxArray, so there would be no way to pass variables back & forth either without rebuilding them in each direction. All of that 32-bit background stuff must be running properly in order for the mex routine to function. I don't see how all of this can happen with 64-bit MATLAB.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!