Raymond Chen's take on so-called zero cost exceptions
Elronnd
elronnd at elronnd.net
Tue Mar 1 19:20:04 UTC 2022
On Tuesday, 1 March 2022 at 12:51:08 UTC, deadalnix wrote:
> I'm not sure that gcc's code is actually better, it's pretty
> much the same, with the cold section split out. The only
> notable difference in is to use add/mov vs lea for gcc.
Yes:
1. hot/cold splitting
2. lea vs add/mov (marginal, but still smaller)
3. branchless h
I think all of these qualify gcc's code as better.
> Interestingly, i submitted a patch to split exception code in
> cold section for LLVM the way GCC does it, but it ended up not
> being merged :/
Curious, why not?
More information about the Digitalmars-d
mailing list