Hello friends
I have encountered a very strange problem, I have keil with MDK3.08a version. When i compiled program and loaded in the target the execution speed of the program becomes considerably slower (not in debug mode). I have compared the speed with the previous version of keil (i don't remember may be 3.20).
Furthermore when i interchange the location of C file in the work space it effects the execution speed. When I compared the output hex file of the same project with interchanged c files position in work space, i found they were different.
Please help me out of this
a for loop delay function take more time to execute in 3.80a then in older version
Is this delay function short enough to be easily analyzed with the disassembler? If so, just look at the generated code and see what exactly changed. And yes, delay 'for' loops are generally a bad idea.
but for loop is not only used for delay may be i could use it for another purpose also, will that for loop not affected due to slower speed
It's too early to worry about that. You have not yet demonstrated that the new compiler generates slower code. The delay 'for' loop doesn't count as proof, it should be clear by now.