From: Eli Z. <el...@gn...> - 2013-11-07 15:58:59
|
> Date: Thu, 07 Nov 2013 08:10:30 +0100 (CET) > From: Mauro Salvini <mau...@sm...> > > >>> No, I didn't any strip. But after stripping I got a 93Kb executable with MinGW on Linux and a 166Kb executable with MinGW on Windows. > >> It's possible that on Windows, GCC pulls much more code from libgcc. > >> > >> Also, the object formats are different (pe-coff vs elf), so this > >> comparison might not be meaningful even after stripping. > >> > > Can the OP clarify here: Does "MinGW on Linux" mean a cross-compiler, or > > the Linux-native compiler that Eli's comment about PE-COFF vs. ELF above > > implies? (I took it to mean a cross-compiler.) > > > Yes, " MinGW on Linux" means a cross-compiler, sorry for misunderstanding. Then it's my misunderstanding, sorry. In that case, you may wish comparing the output of objdump, and perhaps doing that also on individual *.o files (to see if the difference is due to different code that was generated from your sources, or something else). |