From: devel@... [mailto:devel@...]
On Behalf Of Ooi, Cinly via Lists.Zephyrproject.Org Sent: Thursday 21 March 2019 01:19 To: devel@... Cc: devel@... Subject: [Zephyr-devel] How to disable optimization in sanitycheck
Dear All
Is there an option (or any instruction on how to modify the code) to disable all optimization in sanitycheck?
Purpose: When I was looking at the code coverage report generated by sanitycheck, there are signs that there may be optimization enabled, e.g., only the middle of
three C statements was not covered and the program execution is linear. I was exploring command line option to disable optimization but cannot find any
Then I was not sure whether something was optimized away with "Z_SYSCALL_HANDLER(funcName);" statement, i.e. a syscall handler with empty body