2009-02-08 05:14 PM
Is it a bug in IAR 4.42a for Cortex-M3?
2011-05-17 04:02 AM
/******************************************************
1. IAR 4.42A, MCU: ST STM32F10xxE 2. Optimization =None Or Lowï¼› ******************************************************/ typedef unsigned char u8; typedef unsigned long u32; u8 BugTest(void); u8 BugTest(void) { u32 CC; u8 AA,BB=0; CC = 0x12345678; AA = CC >> 8; BB |= (AA & 0x80) >> 7; return BB; // Error: BB=0x68, should be 0x00 } /******************************************************/ static u8 TT; int main() { u8 WW; TT=BugTest(); WW=TT; } are there any patch(4.42a) for it ? by the way , Test IAR 5.20 is OK.2011-05-17 04:02 AM
I've known who you are,hiahia
ä½ ä¸�是在21ICå�‘表过了么,都跑到这里啦?娃哈哈