This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to avoid generate _ARM_common_switch8 in switch case

Dear all

I would like to avoid generation on "_ARM_common_switch8" in switch case / MDK ARM.

I cannot change the source code because of its porting past product.

it may be difficult to use compiler optimization without impact other part.

Could you let me know any good way to solve ?

Any information much appreciated.

Best regards

Parents
  • You're building a new product, you should modify the code to make it more portable if necessary.

    Optimization should do away with this code, what code isn't optimizing well? Do you need to use volatile for things that are changed outside program flow?

    Why is having this routine an issue if the code functions as designed?

    You can enable optimization on a per file basis, and use #pragma's at a function level.

Reply
  • You're building a new product, you should modify the code to make it more portable if necessary.

    Optimization should do away with this code, what code isn't optimizing well? Do you need to use volatile for things that are changed outside program flow?

    Why is having this routine an issue if the code functions as designed?

    You can enable optimization on a per file basis, and use #pragma's at a function level.

Children