|
From: Steve B. <st...@pr...> - 2006-03-08 15:21:42
|
I have just been transferring one of our standard systems from BSD/OS to NetBSD, building Win32 executables like this: gcc -fwritable-strings -c globals.c specials.c main.c random.c ar cr libnewscir.a globals.o specials.o main.o random.o ranlib libnewscir.a gcc -fwritable-strings -c tmp.$1.c dlltool -e exports.o --export-all-symbols tmp.$1.o globals.o specials.o main.o random.o gcc -o $1.exe tmp.$1.o globals.o specials.o main.o random.o exports.o -L./ -lkernel32 The script is identical, apart from the paths to mingw (omitted above). But the NetBSD-generated versions seem to have an additional 170 Kbytes of overhead in the .exe, which isn't much these days I suppose, but when the BSD/OS-generated version is 45 Kbytes and the NetBSD-generated version is 220 Kbytes it's slightly jaw-dropping. Has there been a general upwards creep in executable code size that I just haven't noticed before? -- Steve Blinkhorn <st...@pr...> |