Shop OBEX P1 Docs P2 Docs Learn Events
interpreting object info ? — Parallax Forums

interpreting object info ?

Don PomplunDon Pomplun Posts: 116
edited 2011-08-19 20:13 in Propeller 1
My new house control (old monolithic) code is now 7 objects and running (but never) bug free.
I'm puzzling over how to interpret the object info window you get with an F8. Lower level objects seem to use fewer pgm and var longs, and show more stack/free space, as expected. And my top object shows the greatest pgm & var space of any, and less free stack.
i.e., pgm is 2140, var is 970 and stack/free is 5078. I assume these are decimal because I never see A-F in any of them. The top line seems to imply that $0000 - $0010 are reserved locations, and ram goes up to $7FFF (32767).
But adding up pgm, var & stack/free doesn't come anywhere near 32767. How do you interpret this window?
TIA
Don

Comments

  • Andrey DemenevAndrey Demenev Posts: 377
    edited 2011-08-19 17:27
    Don, you are missing one thing. The numbers are in LONGs, not BYTEs. 2140+970+5078 = 8188 LONGs. 8188 * 4 = 32752 BYTEs. Add 16 bytes of binary header, and you get exactly 32768.
  • Don PomplunDon Pomplun Posts: 116
    edited 2011-08-19 20:13
    Achhhh! I knew I was close! Thanx
Sign In or Register to comment.