Shop OBEX P1 Docs P2 Docs Learn Events
Memory use by unused objects — Parallax Forums

Memory use by unused objects

John AbshierJohn Abshier Posts: 1,116
edited 2006-12-01 19:01 in Propeller 1
I thought that the IDE only used called methods.· In my program I used a BS2 object to get one of its methods.· I later changed my program and no longer called the method.· But I left the BS2 object declared in the OBJ section.· Memory usage was
Program: 1903 longs Variables:·112 longs.· I then removed the following line

· BS2 : "BS2_Functions"·

Memory usage then went to Program: 1401· Variables 95
·

Comments

  • James LongJames Long Posts: 1,181
    edited 2006-12-01 19:01
    John,

    I think the object probably has variables....and constants....that are being used no matter what methods are called. The savings are the temp variables from the methods that are not being used.

    Chip or someone else may chime in here and correct me if I'm wrong.

    James L
Sign In or Register to comment.