On 29-Aug-2015 01:05, Walter Bright wrote:
On 8/28/2015 9:49 AM, Dmitry Olshansky wrote:
Have you ever written a backend? What is the evidance?
Consider that x86 x64 bit support was done in about one year and a
half by
Walter single-handedly that is without freezing the other activity on
DMD, of
course. Aside from emitting different sequences of instructions most
IR-based
optimizations stay the same.
Doing an ARM back end wouldn't be that hard. It's much less complex than
x86. Most of the work would be deleting about half of the x86 code
generator :-)
Yeah, I guess the things to provision for is register count + some
peculiarities of allowed moves/stores etc.
Doing the first 64-bit codegen was a difficult task, compared to doing
another 32-bit one.
--
Dmitry Olshansky