Standard way to supply hints to branches

Walter Bright newshound2 at digitalmars.com
Thu Sep 12 03:23:57 UTC 2024


On 9/11/2024 3:23 PM, Manu wrote:
> Even if you can manage to convince a compiler to write the output you're 
> alleging,

Alleging? I cut and pasted what dmd did and what gcc did. My gcc may behave 
differently than yours, as there are many versions of it.

> I would never imagine for a second that's a reliable strategy. The 
> optimiser could do all kinds of things... even though in all my experiments, it 
> does exactly what I predicted it would.

Did you use -O?

dmd does what I predicted it would, as it is designed to operate that way. If 
gcc doesn't do what you want, there's nothing I can do about it.


More information about the Digitalmars-d mailing list