Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r36g2000prf.googlegroups.com!not-for-mail
From: rustic.drive@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: Converting Matlab .m file into C code
Date: Fri, 31 Oct 2008 08:45:57 -0700 (PDT)
Organization: http://groups.google.com
Lines: 53
Message-ID: <abd756e9-ada2-4eba-8845-5183aa004376@r36g2000prf.googlegroups.com>
References: <fgu4nb$6fe$1@fred.mathworks.com> <gc38je$oj6$1@fred.mathworks.com> 
	<ApbFk.8020$i84.6499@newsfe10.iad> <gcgjtp$k1e$1@fred.mathworks.com> 
	<gcl2ci$oq$1@fred.mathworks.com> <oyrHk.60319$gY7.2409@newsfe19.iad>
NNTP-Posting-Host: 75.150.132.241
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1225467957 24352 127.0.0.1 (31 Oct 2008 15:45:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 31 Oct 2008 15:45:57 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r36g2000prf.googlegroups.com; posting-host=75.150.132.241; 
	posting-account=f1LTbwoAAAD-j_oG2sHp9Id14GSqJYqN
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) 
	Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:498296


On Oct 9, 1:54=A0pm, Walter Roberson <rober...@hushmail.com> wrote:
> B) A deployment tool similar in effect to theMatlabcompiler, but which pr=
oduces *much* smaller
> packages by only including the parts ofMatlabthat are "actually used" for=
 the program;
> said package should include a magic version of BLAS (and similar librarie=
s) that is
> simultaneously optimized for all possible target processors so the delive=
red executable will
> "just work" (but of course, only the portions of those libraries that wil=
l actually be called
> upon should be included); Or

> C) A tool that will speed up their code by a factor of at least 20 (worst=
 case), with 80 to 100 times
> speedup -expected-, because "everyone knows" thatMatlabis much slower tha=
nC.
>
> > Walter covered all this, I know. =A0But he could answer you a lot bette=
r if you'd tell him
> > *WHY* you want to convert toC.

Walter, thanks for your insight into Matlab compiler and Embedded
Matlab.
I am looking to convert some Matlab code into C. Reason : I want my
code to run as fast as possible. It will not be a real time app and
will sit on a PC. But execution time is important.
I have been researching this and spoke to Mathworks support recently.

This is what I learnt about Embedded Matlab:
-Will need to buy Real Time Workshop and Simulink ($ 7500+3000)
- Embedded Matlab (emlc) is limited
	a. Not all functions can be translated
	b. M code to be written to be compliant with emlc guidelines
	c. Will not be as fast as normal C
	d. <my thought> Unknown issues that may arise from machine generated
code

The support person seemed to suggest that Matlab compiler might be a
solution that runs faster.

From your experience,
     1. how reliable is C code generated by matlab
     2. how much of a pain is it to write m code that is Embedded
Matlab compliant
     3. do you know if a Matlab Compiler solution might run faster
than Embedded Matlab generated C
     4. How much faster is Embedded Matlab generated C than normal
Matlab
     5. Do you have any insights on the Parallel computing Toolbox?

Thank you,
Madhu