Serout code space


Results 1 to 12 of 12

Threaded View

  1. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Serout code space

    Haha, you’re right there. I can’t even measure the start bit alone because the next bit could be either value.
    I didn’t consider that!

    IIRC, 2400 baud timing is 417uS, so you’d maybe subtract a little from that to make up for the instruction time of the serial code itself.
    No, it’s not fair to compare with Serout, and Debug didn’t even occur to me.

    So long as I could use asm like PBP compiler does in the end, it could be smaller.
    When I did decompile PBP in the past, all bytes were sent to functions like this via it’s intermediate system variables,
    so that’s an extra copy for nothing:

    Code:
    Your PBP var -> system var -> serial routine
    Unless that has been changed in further PBP revisions, it’s still one up
    It also occurred to me since last night that serial input code may, or may not be included in a PBP program if only output code is used.

    Ps. It probably goes without saying, the main loop in that example was verbose for readability, and should be replaced by reading the data out of an array!
    Last edited by Art; - 21st November 2016 at 04:08.

Similar Threads

  1. Working code but my layman approach uses too much code space
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th December 2012, 21:44
  2. I'm running out of code space example.
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st June 2010, 21:33
  3. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  4. Need more code space
    By Sphere in forum General
    Replies: 2
    Last Post: - 19th September 2005, 21:49
  5. Need more code space
    By ghutchison in forum General
    Replies: 1
    Last Post: - 12th February 2005, 21:54

Members who have read this thread : 0

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