Thread Subject: Compiling RTW generated C files outside matlab

Subject: Compiling RTW generated C files outside matlab

From: Trupti Ranka

Date: 16 Nov, 2009 15:58:02

Message: 1 of 4

Hello,
I want to create an exe of my simulink model which will run on 32 bit DOS. For this I want to use a compiler that is not supported by RTW. Is it possible to compile the code generated by RTW outside matlab using my own compiler? If yes, then can someone point me to the basic documentation for this?
Thanks
Trupti

Subject: Compiling RTW generated C files outside matlab

From: Phil Goddard

Date: 17 Nov, 2009 01:56:04

Message: 2 of 4


As part of the RTW build process a make file is also created, called modelname.bat (on windows), and written to the same directory as all the other generated code.

The easiest way to use a non-supported compiler is to make appropriate modifications to that make find and run it manually.

Phil.

Subject: Compiling RTW generated C files outside matlab

From: Trupti Ranka

Date: 17 Nov, 2009 14:14:06

Message: 3 of 4

"Phil Goddard" <philNOSPAM@goddardconsulting.ca> wrote in message <hdsvrk$9uk$1@fred.mathworks.com>...
>
> As part of the RTW build process a make file is also created, called modelname.bat (on windows), and written to the same directory as all the other generated code.
>
> The easiest way to use a non-supported compiler is to make appropriate modifications to that make find and run it manually.
>
> Phil.
Hello Phil,
Thank you for the reply. If I understand correctly then besides changing the .bat file or make file I will also have to compile few matlab header files and C files along with my code. According to build error generated by compiler I have added a few of these file. But still I am not able to compile the code successfully.
What all header and C files do I have to use to build the model successfully outside matlab?
Thanks

Trupti

Subject: Compiling RTW generated C files outside matlab

From: Phil Goddard

Date: 18 Nov, 2009 18:02:03

Message: 4 of 4


All the directories you need are listed in the various INCLUDE lines within the make file.

Phil.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com