Compiler flags when profiling a build
Johan Engelen
j at j.nl
Sun Oct 25 20:19:21 UTC 2020
On Sunday, 25 October 2020 at 20:08:52 UTC, Guillaume Piolat
wrote:
> On Sunday, 25 October 2020 at 19:58:29 UTC, Guillaume Piolat
> wrote:
>>
>> 1. Because LDC doesn't have -profile and changing backends is
>> an important an easy optimization.
>
> Erratum: ldc does have -profile, at least it works in ldmd2 so
> should map to a ldc2 flag.
LDC has --fdmd-trace-functions resp. --finstrument-functions for
DMD resp. basic GCC-style profiling.
cheers,
Johan
More information about the Digitalmars-d
mailing list