PDA

View Full Version : from assembly to basic



shantanu
- 1st February 2007, 05:20
I have written PIC programs in assembly language for 4 years & have recently started using PROTON.I wrote a simple application in BASIC where a LCD is displaying the table of 2 in the form 2X1 2X2 etc. The compiled assembly code took a space of about 500 words.If I had written the same in assembly then I am sure that the same thing could have been written in 200 words max.Definitely there is a time advantage in code development ,but don't you guys feel that there ought to be some featute like code optimisation that can be turned on/off as required?

Darrel Taylor
- 1st February 2007, 05:29
Hi shantanu,

The forum for Proton+ is http://picbasic.org/forum/

This one is for PicBasic Pro.

Cheers,

lester
- 1st February 2007, 06:46
And to avaoid anyone being misled by the original pist in this thread, there IS an option to turn on code optimisation in Proton. IN fact there are multiple levels of code optimisation.

shantanu
- 1st February 2007, 07:03
HI lester,
In my proton suite I could not see any code optimisation options

Bruce
- 1st February 2007, 14:50
Refer to the help file under 'Proton Compiler', section 'Using the Optimizer'. It's
all in there.

Then visit: http://www.picbasic.org/forum if you have questions/problems
with optimising code. There are occasions where you will not want to enable
the optimiser.