eccles
2nd May 2002 22:52 UTC
Making NSIS even smaller...?
I've just found/rediscovered this file while clearing out my downloads directory, explaining some compiler/linker options to make .exe's smaller :)
Just curious if the NSIS exehead could make use of any/all of these options, if it doesn't already...?
--
Dave.
rainwater
3rd May 2002 03:08 UTC
That's the header file from http://www.nopcode.com/. A quick test showed the exehead went from 35.5k to 35k (difference of 0.5k). I'm not sure about the license though.
klumy
5th May 2002 19:22 UTC
another good tool for compressing EXE is UPX
It's open source
http://upx.sourceforge.net/
Joost Verburg
5th May 2002 19:56 UTC
UPX just compresses the exe, that's the same as the NSIS compress whole option.
rainwater
14th May 2002 20:58 UTC
*** bump ***
Any chance of added these few lines to reduce the exehead by a 1/2k?
pjw62
15th May 2002 18:49 UTC
I think most the of the #PRAGMAs in the header are already set, I can't remember though.
eccles
15th May 2002 21:43 UTC
Just confirmed the part of that file doing the business boils down to adding the following to the linker options in the project settings
/merge:.text=.data /merge:.reloc=.data /ignore:4078
How about setting these in the next version then? Or could they cause side-effects...?
eccles
11th August 2002 21:09 UTC
Originally posted by eccles
Just confirmed the part of that file doing the business boils down to adding the following to the linker options in the project settings
/merge:.text=.data /merge:.reloc=.data /ignore:4078
Anyone know of any problem these settings could cause? If not I'd like to add them to nsis2k...
Dave.
kichik
11th August 2002 21:33 UTC
If you add them the header file can not be compressed using UPX. I alredy removed it from NSIS 2.0a1.
eccles
11th August 2002 21:46 UTC
Oh!? Ok, fairy nuff.