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.
unsigned char far ff1 _at_ 0x010001; unsigned char far ff2 _at_ 0x020001; unsigned char far ff3 _at_ 0x030001; void main () { ff1 = 0x20; ff2 = 0x30; ff3 = 0x40; } Code Optimization: level 8 when compiled->linked generate code below: 6: void main () 7: { ff1 = 0x20; 0x800019 7420 MOV A,#0x20 0x80001B 7B01 MOV R3,#ff2(0x01) 0x80001D 7A00 MOV R2,#0x00 0x80001F 7901 MOV R1,#ff2(0x01) 0x800021 A558 EMOV @PR0+0,A 8: ff2 = 0x30; 0x800023 7430 MOV A,#0x30 0x800025 A558 EMOV @PR0+0,A 9: ff3 = 0x40; 0x800027 7440 MOV A,#0x40 0x800029 A558 EMOV @PR0+0,A 10: } 0x80002B A522 ERET the result is ff1:0x40 ff2:0x00 ff3:0x00 Is this an BUG?
I report this bug, But no keil's reply, Why?
Keil support doesn't monitor this forum for bug reports. There are a couple of Keil employees that do read the board and answer questions, but by and large it's a user forum. I've always gotten good results contacting Keil support via email. They'll want you to attach a .zip file with a small project that illustrates the problem. http://www.keil.com/support/bugreport.htm http://www.keil.com/support/email.htm