how to shrink code


Results 1 to 13 of 13

Threaded View

  1. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Peter1960 View Post
    a minor oversight !
    The demo PIC had 8k,
    final PIC ONLY 4k !
    Suggestions to shrink code, please !
    I have already used ASM/ENDASM where possible,
    have used minimal GoSubs,
    I started with 7996 and am down to 5100, only 1100 bytes to go !
    any other suggestions ?
    kindest regards
    Which PIC?
    If it's a 16F series, you can probably mess with the variables a bit.
    Figure out which variable you 'access' the most and ensure it's forced into BANK 0.

    For that matter, let's see the code.
    You'll probably get a 1000 ideas on how to shrink the code.
    Last edited by skimask; - 23rd January 2008 at 16:47.

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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