Hi all,
I confirmed that different asm files are output with the following two codes,.
(1) while(*PRCM_CM_IDLEST_DPLL_MPU & 0x0100 == 0x0100);
(2) while((*PRCM_CM_IDLEST_DPLL_MPU & 0x0100) == 0x0100);
In case of the asm code of (1), the code will check 0x001 instead of 0x100, so the program will not work properly.
- Why is there a difference in the output code?
- Is this a compiler bug?
- Do I always need to write code in the way of (2)?
I tried it with the following compiler.
- TI v16.9.6.LTS
- TI v18.9.0.LTS
Best regards,
Sasaki
 
				 
		 
					 
                           
				