July 19, 2008 Re: Formal annotating Code for Optimizations? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> JAnderson wrote:
>> MSVC++ 2005 has this profile that you can run on the code and then it will use that to optimize the code to use the most common paths. I'm not sure if it also optimizes IF statements. I know it optimizes functions layout to be more cache friendly.
>
> The dmd profiler does this too. It emits a file, trace.def, which optimally orders functions based on the runtime profile, which you can then use as input to optlink.
That's cool! It sums over multiple runs as well. I might leave it on most of the time.
-Joel
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply