FORUM TOPIC · READ ONLY

Slow Compilation Time

Slow Compilation Time

Forum : bug reports

3 message(s) · archive en lecture seule

Masaki
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

Re: RTW vs. RTW embedded coder

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

Re: Slow Compilation Time

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