Is there any language that native-compiles faster than D?
ketmar at ketmar.no-ip.org
Wed Aug 26 04:37:06 UTC 2020
H. S. Teoh wrote:
>> I wonder if anyone in the D community has the expertise to change
>> modify or rewrite DMD's backend to be up to be at most 1.5-2x slower
>> at normal, non-SIMD tasks, up to a poor version of LuaJIT or V8 while
>> retaining the speed.
> Supposedly Walter is one of the only people who understands the backend
> well enough to be able to make significant improvements to it.
that's why there is no reason to "improve" current DMD backend at all. it
is much easier to throw it away, and write a brand new one, SSA-based. i
bet that bog-standard SSA with linear register allocator will generate code
at least as good as DMD -O, but it will be faster, and more maintainable.
it is also easy to retarget it, because most analysis (and even spilling,
partially) is done on SSA level, and you only have to port instruction
selector. so no problems maintaining backends for x86, x86_64 and arm (even
in the same executable).
also, the same backend can be used to jit ctfe code later.
now we only need somebody to do it.
More information about the Digitalmars-d