Hello,
We appreciate your effort in reporting the Beta compiler issues and suggestions, we will start working on them soon.
If you have anything more to add, please post it here.
Regards,
Filip.
mikroC PRO for PIC Beta 7.3.0. - Beta Reporting
Re: mikroC PRO for PIC Beta 7.3.0. - Beta Reporting
There's something that could be improved (as always ).
Unfortunate architecture of these new processors makes it impossible to use MOVFF instruction when moving values from GPRs to SFRs and back, and long-range MOVFFL instruction takes three words (and three instruction cycles to execute). Well, sometimes a MOVFFL instruction could be replaced with two single-word instructions thus saving code memory and speeding execution. For example, statementcoded now as
(which takes 6 words) could instead use 4 words and cut 1/3 of execution time
Optimal case is when both the GPR and the SFR is in access bank, but even when only the source or the destination is placed in access bank, a group of move instructions converted this way could lead to savings.
If nothing else, such replacement could be done as some optimization step.
Unfortunate architecture of these new processors makes it impossible to use MOVFF instruction when moving values from GPRs to SFRs and back, and long-range MOVFFL instruction takes three words (and three instruction cycles to execute). Well, sometimes a MOVFFL instruction could be replaced with two single-word instructions thus saving code memory and speeding execution. For example, statement
Code: Select all
FSR0PTR=ptr;
Code: Select all
MOVFFL _ptr, FSR0PTR
MOVFFL _ptr+1, FSR0PTR+1
Code: Select all
MOVF _ptr,W
MOVWF FSR0
MOVF _ptr+1,W
MOVWF FSR0H
If nothing else, such replacement could be done as some optimization step.