GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing kroartem.wordpress.com — gcc: decrease binary size, eliminate unused functions/code

← Please make me unsee it
Начало работы с GoogleTest →

gcc: decrease binary size, eliminate unused functions/code

Posted on February 9, 2014 by kroartem

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 gcc won’t eliminate unused data/functions, but we can do it manually. As a result – decreasing ‘supertuxkart’ binary by 80kb. Not epic, especially when you know that binary is 11mb in size.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Related

This entry was posted in Uncategorized and tagged gcc, linux, optimization. Bookmark the permalink.
← Please make me unsee it
Начало работы с GoogleTest →

Leave a Reply Cancel reply

  • Recent Posts

    • Back from stasis
    • When you see warnings everywhere
    • Autologin in Windows
    • Software Testing
    • A few words about SmartClientWebDriver
  • Archives

    • October 2018
    • May 2017
    • August 2015
    • August 2014
    • May 2014
    • April 2014
    • February 2014
    • January 2014
    • June 2013
    • March 2013
    • February 2013
  • Categories

    • Uncategorized
  • Meta

    • Create account
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.com
  • Meta

    • Create account
    • Log in
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Comment
  • Reblog
  • Subscribe Subscribed
  • kroartem
    Copy shortlinkView post in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
Create your own website, free on WordPress.com.Create your own website.
Start free
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.