Forum : Ride IDE
Original Post
Post Information | Post |
---|---|
August 7, 2008 - 1:45pm
|
HI I have just started using RIDE 7 and find that with a very simple program, the timings are about 4 times too slow. If I go back to RIDE 6, all is well. |
Hi pysclone (or whoever...),
The compiler is not specific to the development environment: So it should compile to the exact same output.
What may differ however is the set of options that you pass to the compiler. The easiest way to understand the differences is to compile your application under Ride6 and Ride7, then compare the listing files (.lst). In the first lines of the listing you will see the compiler command-line options, and check which option is degrading your performance.
(Just a guess: check that mode AUTO is disabled (no reentrant functions), variables are in page0 and optimization level is at its maximum and in size mode.
Let me know if you have some more problems.
Bruno
Thank you for your prompt reply Bruno,
I have investigated a little more and found that the internal RC on the device must be running at the same frequency in both cases as my PWM output is the same frequency. The problem, more specifically, seems to be with my 'for' loops. I use a simple loop to generate my program delay, the count variable is initialised as an integer and I count to 0xF0 in order to generate my delay. On Ride6 this generates an 800uS delay but on Ride7 this is more like 3200uS! Could it be handling variable in a diferent way or something? I have tried changing and matching the compiler settings but nothing seems to make any diference.
Hi
I tried to make some test and I do not reproduce this problem.
I used Ride6 version 6.10.22 BN747ST7 and ST7 tool chain version 2.1.3 etc .....
And Ride7 version 7.10.0000 with RKit-STM8 version 2.10.0000
I used the project examples "Towers" without any change in both cases, excepted the code lines below that I added after the main:
int i,j,k;
k=0xF0;
for (j=0; j