Program Size.....


Closed Thread
Results 1 to 3 of 3
  1. #1
    robertmark68's Avatar
    robertmark68 Guest

    Smile Program Size.....

    I'm targetting a 16F877A device....

    Today I got this message when compiling....

    "...code crosses boundary @ 800h"

    This got to me to thinking about something I hadn't since I have started playing with PIC's...PROGRAM SIZE and its logical question:

    "How big can I make a program in the device i have chosen?"

    I would say I have written about half the code I need and i want to know if I am going to have enough space to finish the code.

    The compiler says I have used 2070 words. which naturally begs the question...how many words are there?

    I'm sorry if this questions seems terribly 'newbie'...but that is after all what I am.

    Thanks in advance!

    Robert

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Hi Robert,

    The datasheet will tell you the size of the program memory for your chosen PIC.

    Its difficult to guess how much space you will actually need as it depends on which commands you are using.

    The first time a command is used in a program a whole load of Macros are added to the program to deal with that command so just adding one line can result in quite an alarming increase in size. Having said that, once the macros are included you can then add quite a lot of code and the finished file doesnt seem to grow at the same rate.

    I guess Darrel, Melanie or one of the other experts may be able to give a more complete answer but those are my observations as my main project progresses.
    Keith

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

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Nope, I think you covered it.

    Except for this maybe ...

    http://www.picbasic.co.uk/forum/showthread.php?t=555
    <br>
    DT

Similar Threads

  1. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  2. Matching PIC memory and program size?
    By manxman in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th August 2006, 08:02
  3. program memory size
    By volcane in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th October 2005, 19:45
  4. pic18F code size problem???
    By dogi in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th March 2005, 21:52
  5. size of program vs mem on pic
    By PICMAN in forum General
    Replies: 1
    Last Post: - 1st March 2005, 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