Link time optimization in D

Leandro Lucarella llucax at gmail.com
Tue Jun 1 07:43:16 PDT 2010


Andrei Alexandrescu, el  1 de junio a las 08:23 me escribiste:
> 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.

Or maybe from a file.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
DESCARTAN BIDET VIRTUAL PORQUE NO LAVA
	-- Cronista TV


More information about the Digitalmars-d mailing list