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

4 visualizaciones (últimos 30 días)
Abdul Rehman
Abdul Rehman el 6 de Oct. de 2020
Editada: James Tursa el 7 de Oct. de 2020
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.

Respuestas (1)

James Tursa
James Tursa el 6 de Oct. de 2020
Editada: James Tursa el 7 de Oct. de 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.

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by