Shop OBEX P1 Docs P2 Docs Learn Events
How to find program size? — Parallax Forums

How to find program size?

Greg NortonGreg Norton Posts: 70
edited 2007-04-13 04:08 in BASIC Stamp
Hello All,

I have written a program for my BS2 and I'm thinking of making significant additions to it.· How can I determine if my current version is anywhere near the capacity limits of my BS2?· I read that the program space for the BS2 is about 500 instructions, but I don't know how many I am currently using.· Is it as simple as counting the keywords in blue in my program?

Any suggestions?

Thanks.
Greg

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-12 17:46
    The Memory Map window in the PBasic Editor will show you how much of the program memory is used (and what's still available). Different statements require different amounts of memory, so looking at the source program doesn't really give you a good idea of the memory usage. The Memory Map window also show you how much of the limited variable space has been used so far.
  • Greg NortonGreg Norton Posts: 70
    edited 2007-04-13 04:08
    Thank you Mike, that was very helpful.

    Greg
Sign In or Register to comment.