SDL library size on Win32

After compiling SDL and my application on the Win32 platform using both
VisualC++ and mingw32 compiler, I noticed some differences in the
resulting files.

Visual C++
SDL.dll - 557 KB
MyApp.exe - 69 KB

MingW32
SDL.dll - 1,559 KB
MyApp.exe - 224 KB

MyApp was compiled under VC++ with the following command line
"cl fast_test1.c /Z7 /link SDL.lib SDLmain.lib"

and under MingW32 with the following command lines
"gcc -O2 -c -D_GNU_SOURCE -Wall fast_test1.c"
"gcc -O2 fast_test1.o -o MyApp sdl-config --libs"

Would it help to run configure with --disable for all the X windows
extensions and debug?

Thanks.

Joe Blough wrote:

After compiling SDL and my application on the Win32 platform using both
VisualC++ and mingw32 compiler, I noticed some differences in the
resulting files.

Visual C++
SDL.dll - 557 KB
MyApp.exe - 69 KB

MingW32
SDL.dll - 1,559 KB
MyApp.exe - 224 KB

I manually took out all “-g” flags from configure re-run cross-make
(clean, all, install) and got:
SDL.dll - 294K
testwin.exe - 49K

The call
./cross-configure --disable-debug
should have done the same (right?), but it doesn’t. I don’t know how to
change that though.

Cheerio
Andreas–
| Andreas Schiffler aschiffler at home.com |
| 4707 Eastwood Cres., Niagara Falls, Ont L2E 1B4, Canada |
| +1-905-371-3652 (private) - +1-905-371-8834 (work/fax) |