Redundant Object Removal
Whaley
Posts: 6
In the propellor spin tool, if I go to the RUN/COMPILE TOP/VIEW INFO menu, and then click or hover over my top object, I sometimes see a tool hint pop up that says "Redundant Object Removal Saved xxx Longs"
Does anyone know in what circumstances the spin compiler removes redundant code. I have done a test by inserting a large uncalled function, and it seems to grow the code size as a result, regardless of if it is called or not. So I don't think the compiler is removing uncalled functions.
I'm trying to work out whether my (half written) application will fit when it is completely written, and am trying to avoid any surprises due to code being optimised out etc, so am trying to get some confidence in the figures reported in the free/used stats in this dialog box.
Thanks.
David.
·
Does anyone know in what circumstances the spin compiler removes redundant code. I have done a test by inserting a large uncalled function, and it seems to grow the code size as a result, regardless of if it is called or not. So I don't think the compiler is removing uncalled functions.
I'm trying to work out whether my (half written) application will fit when it is completely written, and am trying to avoid any surprises due to code being optimised out etc, so am trying to get some confidence in the figures reported in the free/used stats in this dialog box.
Thanks.
David.
·
Comments
The BST compiler can also be configured to remove uncalled methods.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Thanks for the replies, it gives me confidence that the used space figures are an accurate measure of whether my app will fit when it is twice as big, if you know what I mean.