Profiler Speed

Walter Bright newshound1 at digitalmars.com
Fri Jan 16 11:43:46 PST 2009


bearophile wrote:
> Bill Baxter:
>> That's a good point.  I never think of stuff like that because I
>> use dsss most of the time. You want per-file flags?  Ha!  Dsss
>> laughs at you.  Unfortunately. :-(
> 
> I usually compile programs with bud, that applies the same thing to
> all modules. I presume as dsss. As soon as Walter realizes that's a
> quite natural way to use D (that is, to let something (possibly the
> compiler) find the modules it needs by itself. LDC may eventually
> grow this essential feature), he may think about ways to influence
> the compiler from the code itself, creating compiler directives that
> can be embedded in the code (as in Pascal). I am not sure this is the
> best good solution, maybe there are better solutions, like improving
> those tools (or the compiler) to allow a finer specification of the
> compilation flags.

It's a careful decision about whether to embed a switch in the source 
code or not. One can really make a mess making the wrong choice. For 
profiling, though, it clearly should not go in the source code.



More information about the Digitalmars-d mailing list