PDA

View Full Version : How to find program size?



Greg Norton
04-13-2007, 01:39 AM
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

Mike Green
04-13-2007, 01:46 AM
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 Norton
04-13-2007, 12:08 PM
Thank you Mike, that was very helpful.

Greg