MATLAB: How to build an ADA S-Function in a 64 bit MATLAB

simulink

I would like to build a S-Function from ADA source code in a 64-bit MATLAB. I saw this MATLAB Answers post but it seems to be referring to 32 bit MATLAB:
How can I build an Ada S-Function for 64-bit MATLAB?

Best Answer

Simulink does not directly support Ada S-Functions. However, it is possible to write a C-MEX S-Function that references an Ada DLL. For more details and some examples of how this can be done, please see the attached ZIP-file.
To use the attached examples with 64-bit MATLAB, you will need a 64-bit Ada compiler. To download a GNAT Ada compiler, you can use the following link to find a suitable version: