Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cross compiling with matlab compiler

51 views
Skip to first unread message

Nick Beser

unread,
Jul 14, 1998, 3:00:00 AM7/14/98
to
I have the matlab compiler with C-math library on a PC (Windows NT). It
produces compilable code on the PC. However, I would like to compile the
code on a sparc ultra 60 (to gain some speed). We don't have matlab on the
sparc. Is there anyway of compiling the code (short of buying a matlab
compiler for the sparc?)

Nick Beser
JHU/APL

Sharon Reposa Quaranta

unread,
Jul 14, 1998, 3:00:00 AM7/14/98
to Nick Beser

Hi Nick,

The C code that the MATLAB Compiler creates is not platform specific.
Therefore, you do not need to buy the MATLAB Compiler and MATLAB for the
Sparc station. You can pass the -c flag to mcc to create C code only.
This is taken from the on-line help for mcc:

help mcc

<snip>

c C only. Translate M-file to C, but do not produce a MEX-file
or stand-alone application.

<snip>

Since the executables are platform specific, you would need to have the
Math Library for the Sparc so that you could create a sol2 executable
that will run on the Sparc.

Therefore, once you have the C code from the MATLAB Compiler, you can
compile the C code into a stand-alone executable on the Sparc station by
having the Math Library on the Sparc station.

So in general, no you do not need MATLAB and the MATLAB Compiler on the
Sparc station. But you would need the Math Library on the Sparc Station.

For more information on just obtaining the Math Library for the Sparc
station, please contact your Sales Representative, or e-mail
in...@mathworks.com.

HTH,
Sharon


--
====================================================================
| Sharon Reposa Quaranta | sharon...@mathworks.com |
| The MathWorks, Inc. | email: in...@mathworks.com |
| 24 Prime Park Way | WWW : http://www.mathworks.com |
| Natick, MA 01760-1500 | FTP : ftp://ftp.mathworks.com |
| Phone: (508) 647-7000 | FAX : (508) 647-7201 |
====================================================================

0 new messages