Shop OBEX P1 Docs P2 Docs Learn Events
BS2 Capacity — Parallax Forums

BS2 Capacity

AImanAIman Posts: 531
edited 2006-09-18 19:05 in BASIC Stamp
Does anyone know how many lines of code the BS2 can handle?
I couldn't find anything in my manuals or online.

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-09-16 03:29
    Each basic keyword results in one byte. Each address is another byte. Each "CON" actually defines a 'new name' for the compiler, and actually takes no space. So it varies.

    If you really want to find out, write a few lines, compile it, and check the memory size. See how many bytes are taken. You have 2000 bytes for a BS2, so you can figure it out. I'd guess each line is about 4 bytes on average, so that's 500 lines of code.
  • AImanAIman Posts: 531
    edited 2006-09-18 03:07
    Thanks. Thats what I needed to know so I can figure out how to run my new program.

    smhair.gif
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-09-18 19:05
    Note 'comment' lines, and blank lines, don't result in using any of those 2000 bytes.
Sign In or Register to comment.