Tag Archives: optimization

gcc: decrease binary size, eliminate unused functions/code

In SuperTuxKart, we have ~80 unused functions and some of them are really big. As I’m not sure whether they’re needed or not, I’ve googled for special gcc options. Some links so I don’t forget: http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Compilation-options.html http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ffunction-sections-973 http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-Wl-1104 By default … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment