Link time optimization in D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 1 06:23:26 PDT 2010


On 06/01/2010 04:57 AM, Walter Bright wrote:
> Alex Makhotin wrote:
>> So the best way to build release version(assuming two-phase build)
>> should be:
>>
>> 1. Synchronize DMD compilation switches with DMD link
>> switches(-release -O -inline).
>> 2. Pass all the project sources in one DMD cmd line, compile.
>> 3. Link produced object file with other libs.
>>
>> Am I correct?
>
> You don't need to "synchronize" switches. Just pass all the source files
> that you can that make up your project on one command line.

I now realize that for large projects a future need would be for dmd to 
read files off the standard input. The length of the command line is 
limited.

Andrei



More information about the Digitalmars-d mailing list