ARM first & default LDC

Max Haughton maxhaton at gmail.com
Wed Dec 30 16:18:34 UTC 2020


On Wednesday, 30 December 2020 at 16:13:14 UTC, Ola Fosheim 
Grøstad wrote:
> On Wednesday, 30 December 2020 at 16:03:56 UTC, Max Haughton 
> wrote:
>> No, just guessing how much work it would be. I would quite 
>> like to get a basic backend going but it's much easier said 
>> than done (i.e. most optimisations are fairly simple but 
>> generating proper code and debug info at the end takes ages to 
>> test let alone write)
>
> *nods*
>
> I actually like the idea of a fast non-optimizing backend.
>
> What could be fun is a space-optimizing compiler for WASM and 
> embedded: save as much space as possible.

Space optimizing still requires quite a lot of time eliminating 
work, although LLVM is still pretty bad at it specifically - if 
you give a recursive factorial implementation to LLVM, it can't 
see the overflow's going to happen to so  it will (at O3) give 
you about 100 SIMD instructions rather than a simple loop.


More information about the Digitalmars-d mailing list