We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi,
I'm using arm-none-eabi-gcc 5.4, I'm not sure if there's problem as followed:
if ( ptr && ptr->member ) {
// do some thing....
}
The question is that, when compiled with -O1 or -O2, CPU will execute the condition (ptr->member) before the judgement ( NULL != ptr ) ???