Skip to main content
jgalea
Associate III
February 25, 2009
Question

IAR optimiser

  • February 25, 2009
  • 5 replies
  • 960 views
Posted on February 25, 2009 at 14:04

IAR optimiser

    This topic has been closed for replies.

    5 replies

    jgalea
    jgaleaAuthor
    Associate III
    May 17, 2011
    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

    m3allem
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:04

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

    jj_it
    Associate II
    May 17, 2011
    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...

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

    can you share your code?

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

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