Compiled code efficiency and extra commands (such as SWAP)

Post your requests and ideas on the future development of mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
shunt010
Posts: 7
Joined: 22 Sep 2013 10:15

Compiled code efficiency and extra commands (such as SWAP)

#1 Post by shunt010 » 22 Jul 2014 12:43

Looking through the compiled code, it does seem to be rather clunky.

For example, using the command inc(var) does not produce an INC ASM command. Instead it takes up 3 or 4 cycles with a clunky ADD routine.


Furthermore there are several occasions where SWAP would be useful. But it's simply not implemented.


I feel like I am having to heavily optimize my code, perhaps un-necessarily because the complier is not going about things in the most efficient manner.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 Wish List”