<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
I'm working on a complex project for my company.<BR>
It's a text-parser that handles complex/ambiguos word-based grammars. It reads a set of xml files that define rules, build some structures (trees, dictionaries, etc..) and then parses your phrases.  It works fine.<BR>
<BR>
I compile sources in this (simple) way:<BR>
dmd -c *.d   (three source files)<BR>
<BR>
If i link objects with dmd execution of unit tests takes:<BR>
<BR>
Parsing: 722 ms, 419 μs, and 3 hnsecs<BR>
<BR>
real    5m10.199s<BR>
user    5m9.771s<BR>
sys     0m0.236s<BR>
<BR>
<BR>
using gcc as linker:<BR>
<BR>
Parsing: 425 ms, 677 μs, and 8 hnsecs<BR>
<BR>
real    0m13.919s<BR>
user    0m13.845s<BR>
sys     0m0.088s<BR>
<BR>
<BR>
unittest outputs are identical and execution time of test phrases has similar speed but dmd version takes a lot of time parsing xml and building trees and other structures.<BR>
<BR>
I can't post company code, but i wonder if this is a known issue... If not i'll try to write some code to reproduce this problem...<BR>
<BR>
Configuration:<BR>
Ubuntu 11.10 64bit<BR>
DMD64 D Compiler v2.056<BR>
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) <BR>
<BR>
</BODY>
</HTML>