Is it a bug in IAR 4.42a for Cortex-M3?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-02-08 5:14 PM
Posted on February 09, 2009 at 02:14
Is it a bug in IAR 4.42a for Cortex-M3?
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:02 AM
Posted on May 17, 2011 at 13:02
/******************************************************
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:02 AM
Posted on May 17, 2011 at 13:02
I've known who you are,hiahia
ä½ ä¸�是在21ICå�‘表过了么,都跑到这里啦?娃哈哈