Saving space - close to 128k


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Saving space - close to 128k

    yes , i have already put 64mb a flash chip , for fonts , etc

    what i think i need to do is look at how to search / format of the record table better handled in pbp ,

    currently the methode is

    if value 1 AND value 2 and value 3 then
    if value 4 or value 5 = 1 then

    get those records

    each value may have upto 20 indexed varables attached to it so so although searching can take a few moments the amount of " and" statements to do search parameters needs to be addressed


    i removed all long varables for the 2 main routines that use them , and changed the code to use 2 word values , which gave me back a massive 5k

    i like pbp , but now i am is hitting the wall cos of lack of support for larger chips



    each record has a
    bout the tables are 50bytes per record stored in flash as data is accumulated , some recor

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Saving space - close to 128k

    There are a few threads that talk about this. I started one thread a few years ago asking on how to optimize the program and save programing space.

    Try to use a lot of LOOKUPs. Avoid using WORD variables whenever is possible. If the same code is repeated a few times, then create subroutines and use GOSUB.

    Saving your fonts and data in an external EEPROM memory is not a bad idea.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. Saving COUNTs?
    By jderson in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 19th April 2009, 17:55
  2. Real-time close loop system
    By freelancebee in forum General
    Replies: 0
    Last Post: - 22nd August 2005, 18:28
  3. Saving Variables
    By Tear in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th June 2005, 19:48
  4. writecode at upper half of 128K parts?
    By Tomasm in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd November 2004, 19:02
  5. saving program variables
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 2nd November 2004, 22:25

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