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

    hi hendrick,

    there are some 25 major sections with over 60,000 lines of code in the main program structure and the 3 support code programs for sub structures that load the flash , with graphic fonts , symbols , menus , search tables , option dephalts tables , banners , strings for serial and xls file constructs codes , serial code tables etc before the main program can be run flash is full with about 1mb of data , so posting a specific section would not seem like it would help a lot just yet

    so general approach to clean seems the best starting point.,

    the code for the main is now at 115k , it was at 126k before the first sweep of clean which took me 12 hours to get to , i am hoping to still find about 15k , to allow the other sections to be be written and still fit into the 128k

    the code has been growing slowly over the last 3 months , but i am faced with a clean that has to yield real space , now i want to get the next sections done . such secure bootloader , and search routines etc ,

    i would love a larger chip but that just not an option using pbp after 128k and puting more chips on which may have to be a real option , is not one i want to do, if i can avoid ;(

    options
    1. longs - droping and modifying code that use longs so longs are not needed - save about 3k up front
    2. search option for data , - i think i need to look how i maybe best to do this as " multi "and" and match statements are killing me on space
    3. be a better programmer - still working on that one

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Saving space - close to 128k

    Hello,

    Have you consider a serial eeprom? A 256k could hold your font tables and images etc, freeing up a lot space
    on your main processor.

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