Link time optimization in D

Walter Bright newshound1 at digitalmars.com
Tue Jun 1 11:42:03 PDT 2010


Andrei Alexandrescu wrote:
> 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.

dmd can read command lines from a file with the:

     dmd @command.txt

syntax. There is no limit to the command line length this way. Also, dmd can 
read command lines from an environment variable using:

     dmd @COMMAND

These can be arbitrarily combined with other switches:

     dmd -inline @command.txt -release @COMMAND


More information about the Digitalmars-d mailing list