More space than I thought !!!


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2003
    Posts
    432

    Default More space than I thought !!!

    Well, I knew that I was running out of space in my 16F877 and today I hit the end of the chip.

    No problem thinks me, just move to a bigger PIC.

    I recompiled for a different PIC and the program appeared to grow by about 50% compared to what I was seeing before.

    Commenting out part of the program so it still fits the 16F877 and compiling for various processors I get

    16F877 = 8079 words
    18F452 = 12284 bytes
    18F4520 = 12296 bytes

    Now that I have it written in front of me I can now see that for the 18F series Microcode Studio is reporting the size in BYTES whereas for the 16F series it is reporting WORDS.

    So it seems that instead of growing by 50%, the size of the code is actually SHRINKING by about 25%

    Looked at the size of the HEX files poduced and for the 16F it is about 46K whereas the two 18F processors it is about 34K.

    Is the apparent shrinkage of the code down to the fact that 18F processors are more powerful and can therefore do more in hardware rather than software eg Hardware Multiplier ?

    Its definately a welcome bonus. Whereas I thought I was getting twice as much codespace, because of the decrease in code size I am effectively getting even more space to play with

    Time to digout the PICStart programmer and get the bootloader into a few chips so I can continue work
    Keith

    www.diyha.co.uk
    www.kat5.tv

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Do you use a lot of tables in codespace ?
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  4. #4
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Do you use a lot of tables in codespace ?
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  3. Code space needed with MPASM??
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th September 2007, 11:24
  4. Get a 62.5% more program space easily
    By serandre in forum Code Examples
    Replies: 5
    Last Post: - 8th March 2007, 19:32
  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 : 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