On 27.07.2011 23:35, simendsjo wrote:
On 27.07.2011 20:59, q66 wrote:
== Quote from Dmitry Olshansky ([email protected])'s article
On 27.07.2011 15:21, simendsjo wrote:
A simple hello world like dfl application takes 1.2mb. Upx does a
great job packing this to 200k, but I wonder if there is a way to make
optlink generate smaller executables?

I couldn't find a way to get help on the numerous options in optlink,
and the help page at digitalmars doesn't list them either.
I've noticed around two times smaller exes when linked with unilink. So
if you don't like packing you may try it:
ftp://ftp.styx.cabel.net/pub/UniLink/ulnb0319.zip
<ftp://ftp.styx.cabel.net/pub/UniLink/>
just make sure you configured it correctly (should be straightforward,
there are examples)

I don't work on Windows, but I've heard optlink generates debug info and unilink
doesn't, so that might be the reason?

Even with -O -release? I added -L/NODEBUG and -L/DEBUG, but it seems dmd overrides this with it's switches.
Fist of all linker doesn't _generate_ debug info. But it place it into executable, IIRC last time I checked unilink converted CV debug info into TDS which is sadlly only recognized by Borland's tools. Note that with or without debug info it still links.

--
Dmitry Olshansky

Reply via email to