IBT/BTI instructions and D compilers

Johan j at j.nl
Wed Jul 12 17:09:34 UTC 2023


On Monday, 10 July 2023 at 11:24:37 UTC, Brian Callahan wrote:
> Hi all (but probably mostly Walter) --
>
> OpenBSD has moved to an all-BTI world. Binaries produced by DMD 
> and LDC no longer work because of this. If other OSes make this 
> move, this problem will be further compounded. Is there any 
> thought about enabling IBT/BTI instructions in DMD and LDC?

When this is enabled, I want to add `__traits(getTargetInfo, 
"CET")` that has the same value as the macro `__CET__` in C. What 
string name `"CET"` shall I use for getTargetInfo? (i.e. that can 
be upstreamed to DMD, such that all 3 compilers use the same name)

Thanks,
   Johan



More information about the Digitalmars-d mailing list