This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a way to tell the compiler not to optimise a particular piece of code?

Hi, I am using nrf51822xxaa , Keil Uvision 5.14.2.1. SDK 10.0.0 and S130. I need optimisation level O3 for most parts of the code, except for one part (about 10 lines of code) which I need to be O0. Is it possible? If so, how to achieve this? Thanks.

Parents Reply Children
No Data
Related