...set the optimization level of a single function?

Comments

2 comments

  • Avatar
    Paul Hester

    Is this for V2 Cross Studio? I'm using version 2.0.8 of Cross Studio for MSP430. There is no Compiler > Optimization level that I can find (doesn't mean it doesn't exist of course), although the compiler compiles the file I am interested in with -O+9 (max speed). How do I turn off the optimisation for 1 file? And how does the optimisation level number relate to the project code generation options (if at all?)

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    The optimization level is set for the linker, higher numbers get more optimizations applied.  Individual optimizations are documented.

    The MSP430 CrossWorks does not offer per-file optimization, only whole-program optimization.

    0
    Comment actions Permalink

Please sign in to leave a comment.