Help - Search - Members - Calendar
Full Version: Optimizing dll size
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Fermion
Well, that's the question, how do you make the dll file smaller? I'm using Visual C++ 6.0, and making a release build with the "minimize size" option turned on (for all the sub-projects too). Still the dll size is well over 200KiB. Most plugins seem to be under 100KiB. The project uses ptypes and sqlite3 libraries, but I just can't believe that would cause such a big increase in the size. The source code itself isn't extremely long (1500 lines or so). Any ideas?
kode54
PTypes, maybe. Sqlite3, maybe as well, unless you are using the dynamic library version.
ne_me_sis
QUOTE(Fermion @ May 3 2005, 10:25 AM)
Well, that's the question, how do you make the dll file smaller? I'm using Visual C++ 6.0, and making a release build with the "minimize size" option turned on (for all the sub-projects too). Still the dll size is well over 200KiB. Most plugins seem to be under 100KiB. The project uses ptypes and sqlite3 libraries, but I just can't believe that would cause such a big increase in the size. The source code itself isn't extremely long (1500 lines or so). Any ideas?
*



Do decrease dll size, you can omit C runtime if you do not use C runtime functions
Peter
QUOTE(ne_me_sis @ May 4 2005, 10:49 AM)
Do decrease dll size, you can omit C runtime if you do not use C runtime functions
*


.. which also breaks C++ compiler generated standard function calls. That won't work with foobar2000 SDK. Probably clashes with other libraries people use as well.
Only proper solution to that is using DLL runtime (MSVC6: Project Settings / C/C++ tab / Code Generation / Use run-time library: Multithreaded DLL).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.