Ran out of space need help reducing code size


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Ran out of space need help reducing code size

    I have not done much programming in a year or so, and I am getting rusty . . . but as I remember, If Then GoTo s use up a lot of resources, try substituting select case routines instead, and for your mainloop use while / wend. Please Anyone correct me if I am wrong.
    Last edited by Archangel; - 15th April 2011 at 01:27. Reason: spell
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default Re: Ran out of space need help reducing code size

    Also, how are you declaring your variables? Are you declaring them as bytes or words? It makes a big difference what type of variables you use.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

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


    Did you find this post helpful? Yes | No

    Default Re: Ran out of space need help reducing code size

    Is there no way you could simply use a device with more FLASH?
    Charles Linquist

  4. #4
    Join Date
    Feb 2011
    Posts
    19


    Did you find this post helpful? Yes | No

    Default Re: Ran out of space need help reducing code size

    Quote Originally Posted by rsocor01 View Post
    Also, how are you declaring your variables? Are you declaring them as bytes or words? It makes a big difference what type of variables you use.

    Robert
    THANKS!
    had my var as a word thats why it was taking up so much space.
    Last edited by lockjawz; - 15th April 2011 at 13:22.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts