code size


Closed Thread
Results 1 to 7 of 7

Thread: code size

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Only sections of the library that are required get compiled.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I don't know what your needs are, but I have had two instances where I needed to
    automatically watch the code size:

    1. I use MCLOADER, which occupies some of the chip's upper memory.
    I need to make sure my compiled code does not "run into" the bottom of MCLoader.

    2. I sometimes want to know if my code is small enough to fit into a smaller, cheaper chip.

    The technique I use is to add a few statements at the end of my programs -


    ASM
    ORG 0x1fcee <=== Put the address you don't want to over-run here.
    nop
    ENDASM


    If the code is too big and over-runs the ORG address, MPASM will flag an error.
    Charles Linquist

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. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. Apparent code size problem
    By eetech in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 30th July 2007, 16:51
  5. pic18F code size problem???
    By dogi in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th March 2005, 22:52

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