Would You Bet $100,000,000 on D?
Peter Alexander
peter.alexander.au at gmail.com
Sun Sep 18 15:33:27 PDT 2011
On 18/09/11 7:59 PM, Walter Bright wrote:
> On 9/18/2011 2:49 AM, Peter Alexander wrote:
>> Unity builds help a lot with link time.
>
> dmd does something similar if you build an executable by putting
> multiple modules on the command line. It will create one big object
> file, instead of one per module.
This is good.
Does dmd also cache commonly imported modules in this case?
e.g.
// foo.d
/+ lots of code +/
// bar.d
import foo;
// baz.d
import foo;
dmd foo.d bar.d baz.d
How many times is foo parsed? Once?
More information about the Digitalmars-d
mailing list