← Back to team overview

kicad-developers team mailing list archive

Re: Re: Compiling Kicad using MSVC

 


Dick,
You were correct, the linker -s option is not working. After running stip I see the following reduction in file sizes. Still not enough for me to stop compiling on VC++ since VC++ executables are still 47% the size of the stripped Mingw files.

Mingw 11/29/2007 11:51 AM 6,303,776 cvpcb.exe
11/29/2007 11:51 AM 7,471,808 eeschema.exe
11/29/2007 11:51 AM 6,274,696 gerbview.exe
11/30/2007 08:16 AM 5,825,800 kicad.exe
11/29/2007 11:51 AM 7,974,909 pcbnew.exe

Mingw after running strip.exe
01/08/2008 11:45 AM 4,506,624 cvpcb.exe
01/08/2008 11:47 AM 5,476,352 eeschema.exe
01/08/2008 11:47 AM 4,493,312 gerbview.exe
01/08/2008 11:47 AM 4,185,088 kicad.exe
01/08/2008 11:48 AM 5,893,632 pcbnew.exe

MSVC 7
12/10/2007 01:02 PM 2,383,872 cvpcb.exe
12/10/2007 10:31 AM 2,928,640 eeschema.exe
12/10/2007 11:33 AM 2,359,296 gerbview.exe
12/10/2007 02:45 PM 2,199,552 Kicad.exe
12/10/2007 11:53 AM 3,141,632 pcbnew.exe





Well there is also the option of changing -O2 to -Os which will compile for size rather than speed on g++.

If you do the entire wxWidgets library with this and Kicad, you will see significant reduction. I would guess, 20 to 40%. But this is a WAG.

Then you will have an apples to apples comparison on the attribute comprising your objective: size.

Dick







References