An m script and the modules it requires can be compiled into a single "executable" file. These files have the extension .mex and are ideal to quickly distribute m applications in a single file among m users.
A .mex file is marked in the script list by a
icon. It can be executed directly from the m script list by clicking on it.
Creating a .mex file is also the first step in creating an installable application.
As an example, open the SmsService script from the script list, then choose Process→Compile. A dialog will appear asking you for the name of the executable file (without .mex extension).
![]() | ![]() | |
After successful compilation, a new item SmsService with icon
will appear once you switch back to the script list. This will contain everything that's needed to run SmsService from within m.

Your .mex file will be combined with the m runtime environment mEnvironment.sis for the selected platform.
Here are the essential steps to create an SmsService.sis from SmsService.mex:
![]() | Installed SmsService application |
The web application has several options, for instance to change the application title or caption, to supply another icon, or to install additional files. These are explained in chapter * (Reference).