Optimizing binary size in PropellerTool
Somehow I really believed, that the propeller tool already did that, but recently I found out, that it does not.
@cgracey
Wouldn't it be possible to have the compiler optimize the binary in size, by simply not compiling not used functions into it? Maybe with a flag in propeller tool settings, so that low level programmers tweaking with function pointers can disable this optimization.
With P1 it happened that people were fighting for each byte, which would be much easier then - and without the need to manually strip down sourcecode to the bare minimum resulting in different versions scattered across several projects. From my point of view a big win with some one time afford.
Not so problematic in the beginning for P2 code with 512kB at hand, but I bet that the projects will get bigger there as well.
Only static analysis of the code needed there. Create some call & reference tree and all functions with a link to the root node (the main function) need to go in the binary.
Comments
Yes, this would be ideal, of course, and happen as a last step in compilation. There are things I need to do before I get to that, though.