cancel
Showing results for 
Search instead for 
Did you mean: 

IAR optimiser

jgalea
Associate II
Posted on February 25, 2009 at 14:04

IAR optimiser

5 REPLIES 5
sofiene
Associate III
Posted on May 17, 2011 at 13:04

When you select: no optimization, do you have the same problem?

jgalea
Associate II
Posted on May 17, 2011 at 13:04

Hello. Im using IAR 5.3 kickstart version and processor STM32F10xx4 with the optimiser FULL and on speed. When I use #define to remove part of my code with #ifdef ....#endif, the part inside is not skipped even if #define is uncommented. Please, did anyone meet a similar situation? For the time being I will use normal comments. Thanks Johann

jgalea
Associate II
Posted on May 17, 2011 at 13:04

Hello M3allem. Hope you are fine. No I do not get this problem. Thanks. Nice evening.

jilisegiar
Associate II
Posted on May 17, 2011 at 13:04

can you share your code?

jj
Associate II
Posted on May 17, 2011 at 13:04

M3allem hit it right on the nose.

You may wish to experiment by turning minimal optimizations ON - and noting ''if/how'' they effect compilation. You can then continue this process - and discover ''just when'' you run into trouble. Then you can decide if you want to ''quiet'' the error (modify your code) or accept the less than optimal compilation...