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:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to