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
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.
Hello.
Thank you for your advise.
As further investigation,
I find that compile option, "--no_branch_tables" seems to be compile without "_ARM_common_switch8".
That will be the solution ? or any unexpected behavior occur ?
Best Regards
>>or any unexpected behavior occur ?
Unexpected behaviour by it's nature is not expected..
Run the unit tests or regression tests to confirm your product is functioning as expected.
depends on how good your expectations are ...
View all questions in Keil forum