Shop OBEX P1 Docs P2 Docs Learn Events
Compress spin code while compile ?? — Parallax Forums

Compress spin code while compile ??

AnubispodAnubispod Posts: 42
edited 2013-03-07 05:10 in Propeller 1
Hi i am working on a project where i have for debugging a lot of text going out the serial, i have made a structure where i can turn debug on and off, but it seems that the propeller tool always compiles the same size , with debug flag on or off , is there a way so unused code get sorted out by compiling ?

MfG
O.Rennfort

Add: Solved found info on that this function is on the wait list , so we wait :)
or if some one has a fix for it like a pre compiler let me know :)

Comments

  • Heater.Heater. Posts: 21,230
    edited 2013-03-07 05:10
    If you use the BST tool by BradC it has two features that can help:
    1) It will remove unused methods in your code when you set the correct option on compiling.
    2) You can use #idef and friends to conditionally compile sections of code.

    BST works as well as the Spin tool and offers a number of extra useful features. Best of which is that it is cross-platform, Windows, Mac, Linux.

    http://www.fnarfbargle.com/bst.html


    I hope these features are coming to the new cross-platform IDE from Parallax (SimpleIDE) soon.
Sign In or Register to comment.