Huge Irrlicht DLL

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
elander
Posts: 193
Joined: Tue Oct 05, 2004 11:37 am

Huge Irrlicht DLL

Post by elander »

I compiled the Irrlicht source with CodeBlocks and mingw after importing the .dev project file and disabling directx.

The strange thing is that the compilation produces a 9MB dll.

How can a small dll of 1.9MB like the one that comes with the distribution be created?
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

What are the options you compile/link with? optimised and stripped binaries are smaller than the default ones.
But whatever you try, mingw's binaries are, from my experience, always much bigger than those created with Visual C++.
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

The 1.9MB DLL is about the size that comes out of the MSVC compilers. I have not used mingw much, but what little experience I have reflects that of Baal's - larger end-result files (be they executables or DLL's).

--EK
AndyCR
Posts: 110
Joined: Tue Nov 08, 2005 2:51 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

on windows, msvc++ executables are smaller and faster than their GCC counterparts. luckily there are free versions of msvc++ (.net toolkit 2003 command line and c++ express 2005 ide) that are compatible with irrlicht. definitly do your final pre-release windows version compile using vc++.
elander
Posts: 193
Joined: Tue Oct 05, 2004 11:37 am

Post by elander »

Yes but the dll i was comparing is 1.9MB, come from the downloadable sdk and was compiled with gcc. It's the dll that in the win32-gcc dir of the sdk.
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

Interesting... Is it a release build?

--EK
elander
Posts: 193
Joined: Tue Oct 05, 2004 11:37 am

Post by elander »

No thats only for vc++ projects. But i have already found the trick in the mingw forums. Theres a command called strip.exe in mingw binaries that can be used. The dll size was reduced from 9+ MB to 1.4MB becuase i have compiled without directx drivers. That was a lot of garbage taken away.
hybrid

Post by hybrid »

That's no garbage, it's debug information. You can remove the -g option from the compiler and the informations will not be inclued with your binaries. But you won't get informations on the method your program crashes in.
Post Reply