The Altia Matlab Simulink connection for Windows provides support for lcc as the compiler for RTW (only for Matlab 32 bit).
Using a new script altialccsetup it is possible to reconfigure Altia blocks for compiling with lcc (as described below). This new capability works from Matlab R2006a.
The default configuration for an Altia block is still to use a Microsoft Visual Studio compiler. To reconfigure the Altia block in a model to use lcc as the compiler, execute the following command at the Matlab prompt:
altialccsetup
When prompted to choose an Altia API style, enter 1 to select to use LCC with DDEs. Only enter 2 to select LCC with TCP/IP if there is a very good reason (i.e., you really positively know what you are doing).
To configure RTW to use lcc, execute the following command at the Matlab prompt:
mex -setup
When prompted to choose a compiler from the numbered list of compiler options, enter the number shown for lcc.
If it is necessary to go back to using Microsoft Visual Studio as the compiler, reconfigure RTW with mex -setup and choose the appropriate version of Microsoft Visual Studio as the compiler. Then reconfigure the Altia block with the following command at the Matlab prompt:
altialibsetup
When prompted to choose an Altia API style, enter 1 or 3 to select to use DDEs. Only enter 2 to select TCP/IP if there is a very good reason (i.e., you really positively know what you are doing).