dmd-x64

"Jérôme M. Berger" jeberger at free.fr
Wed Dec 23 04:53:52 PST 2009


alkor wrote:
> maybe, i do something wrong, but for example:
> 
> $ cat main.d
> int main () {
>     return 0;
> }
> 
> $dmd -O -release -ofmain-dmd main.d
> $gdc -O3 main.d -o main-gdc
> $ ls -l main-dmd main-gdc
> -rwxr-xr-x 1 alkor alkor 123439 Dec 23 14:06 main-dmd
> -rwxr-xr-x 1 alkor alkor 609363 Dec 23 14:06 main-gdc
> 
> why the main-gdc in 5 time more then the main-dmd?
> 
	Because the dmd-built executable is stripped. Try to add "-s" to 
the gdc command line or use gdmd with the same options as dmd.

	Moreover, since you are trying to optimize for space rather than 
performance, you should use -Os (or at least -O2) rather than -O3.

> any test shows dmd superiorities over gdc (and gcc)
> dmd rules :)
> 
	dmd doesn't even work on my computer. End of story :)

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20091223/f5d6f99c/attachment.pgp>


More information about the Digitalmars-d mailing list