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

5 vues (au cours des 30 derniers jours)
Abdul Rehman
Abdul Rehman le 6 Oct 2020
Modifié(e) : James Tursa le 7 Oct 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.

Réponses (1)

James Tursa
James Tursa le 6 Oct 2020
Modifié(e) : James Tursa le 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.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by