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

optimization with #pragma or using the option window

Hello,
I'm trying to optimize my code in time so I used the option window-->C/C++/ selected optimization level 3(-O3) and checked optimize for time. I'm using usb HID in the same project and unfortunately the usb device is not recognized any more.
But when I put

#pragma O3
#pragma Otime

before each function in this file, the usb is recognized and there are no problems. So I just want to know if there is a difference between optimizing using the option window in keil or using #pragma.

0