| ??? 06/26/08 02:37 Read: times |
#156211 - Strange problem with Keil Compiler |
Hi,
I am facing a problem with global variable in Keil. Compiler Ver. 7.09 it is being used for timer counting. decalration as given below. xdata unsigned int Holdtime; at some where in the code I am assigning as given below Holdtime = 100; I am expecting it is decrmenting in timer, but it is always zero. after changing the declaration as given below it is ok. data unsigned int Holdtime; I do not have any clues for the problem any suggestions ? Haribabu specs : large memory model Code ROM size 64K program Processor : silabs F124 code optimization : 8 reuse common entry code Emphasis : favor Speed Xdata : 0x0000 to 0x1fff compiler outut says data memory = 101.4 and xdata = 4532 |
| Topic | Author | Date |
| Strange problem with Keil Compiler | 01/01/70 00:00 | |
| Try volatile | 01/01/70 00:00 | |
| Probably not the volatile | 01/01/70 00:00 | |
| Who can know what is in the mind of the compiler | 01/01/70 00:00 | |
| cut out the optimizer (set to 2) and see | 01/01/70 00:00 | |
| Assembler Dump | 01/01/70 00:00 | |
| well | 01/01/70 00:00 | |
| XRAM is enabled | 01/01/70 00:00 | |
| the most likel7y reason is that | 01/01/70 00:00 | |
| You may want to let the linker know | 01/01/70 00:00 | |
| he is using a '124 | 01/01/70 00:00 | |
| I know | 01/01/70 00:00 | |
| Linker output | 01/01/70 00:00 | |
| OVERLAYABLE | 01/01/70 00:00 | |
OVERLAYABLE ? | 01/01/70 00:00 | |
| Eh, no debugger for silabs chip? | 01/01/70 00:00 | |
| I am using CA51 which dont have debugging | 01/01/70 00:00 | |
| it will | 01/01/70 00:00 |



