Menu

CB Compilation

Simeone
2013-04-26
2013-05-04
  • Simeone

    Simeone - 2013-04-26

    Hi! How did you use the gcc compiler to make such small wxwidgets dll? Thank you!

     
  • ptDev

    ptDev - 2013-05-04

    Hi there, I always struggle to keep my wxWidgets binaries small.

    For the DLL I distribute for Code::Blocks, I did the following:

    • Compile for release with wxDEBUG_LEVEL set to 0 (gets rid of asserts code).
    • Once compiled, run strip to remove all remaining embedded debugging symbols information (you'd be surprised).
    • Finally, compress the DLL using UPX.

    Following these steps, I got the size of a monolithic DLL down from 16MB to about 2,5MB.

     

    Last edit: ptDev 2013-05-04

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.