Slow Compilation Time

Post Reply
Masaki
Posts: 12
Joined: Mon Aug 13, 2007 2:39 am
Location: Japan

Slow Compilation Time

Post by Masaki » Sun Feb 24, 2008 9:48 am

Hi Lubin,

After I get RTW embedded coder, the toolkit starts to work.
As its name shows, the prototyping speeds gets really fast!!

On the other hand, the compilation speed seems to be so slow.
It takes about 70 seconds with your exercise program "Sinus PWM".
What is more intersting is that the incremental comiplation time is the same
to both cases: after the model is chaned and no changes is made.

Approximate time profiles are:
RTW 30 sec
"Number of I/O Pins" message (maybe, your program) 20 sec
Compiler 20 sec
Total 70 sec

The PC I'm using is an old one with 800MHz Celleron on Windows 2000.
Matlab version is R2007b.

Would you give me some advice to make it faster?

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: RTW vs. RTW embedded coder

Post by LubinKerhuel » Mon Feb 25, 2008 11:08 pm

I notice this inconvenient. As I am building more and more complex models, it takes more and more time to get compiled. However, I am usually using a faster computer and it is Ok (lets say 25 sec from the 'click' push button to get the .hex file).
Compilation time also depend if you ask for an html report or not.

When a block is being compiled, parameters of others blocks are also checked to get sure that the overall is coherent. This process could be speed up, but it's a hard and long task. I admit that it is not my priority right now! I hope that, despite the slow time compilation for huge model, the blockset accelerate your overall development...

Anyway, I will keep you inform whenever I accelerate the compiling process.

Masaki
Posts: 12
Joined: Mon Aug 13, 2007 2:39 am
Location: Japan

Re: Slow Compilation Time

Post by Masaki » Tue Feb 26, 2008 1:39 am

Thanks for your reply.
I understand this is partly RTW problems.
I'll also try to upgrade my PC.

Another trick you can make is just to speed up parameter tuning process.
When a user changes a parameter on a model, i.e. a gain or constant, your program
automatically detects the correspoinding memory location in hex file and changes it.

Download process takes no time, so this will speed up our total development time.

Masaki

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests