GCC builtins in LDC - compiler interoperability

Cecil Ward cecil at cecilward.com
Wed Jul 15 23:37:06 UTC 2020

On Tuesday, 14 July 2020 at 23:37:13 UTC, Cecil Ward wrote:
> I currently have a fair amount of code that will only run under 
> GDC because of reliance on GDC-specific library routines. I’d 
> like to ask whether I can find or implement equivalents in LDC2 
> to the GDC routines
>         __builtin_expect()
> and
>         __builtin_unreachable() ?
> Could someone point me toward the documentation for this 
> general kind of stuff in LDC ?

I have just noticed this earlier thread by the way, it seems that 
I’m not original. Well at least I was on the right lines as 
others have had the same idea:

More information about the digitalmars-d-ldc mailing list