from assembly to basic


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    3

    Smile from assembly to basic

    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?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Wrong Forum

    Hi shantanu,

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

    This one is for PicBasic Pro.

    Cheers,
    DT

  3. #3
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,030


    Did you find this post helpful? Yes | No

    Default

    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.

  4. #4
    Join Date
    Feb 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Smile

    HI lester,
    In my proton suite I could not see any code optimisation options

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Indexer not indexing...a basic PBP problem??
    By jellis00 in forum General
    Replies: 8
    Last Post: - 24th March 2009, 17:53
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  3. Mixing basic and assembly
    By ManInMotion in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd September 2008, 10:48
  4. Assembly Language Conflict
    By NO2K in forum General
    Replies: 2
    Last Post: - 24th July 2007, 01:42
  5. Assembly Guru : Question
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th May 2007, 04:51

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts