Tail call optimization in dmd

bearophile bearophileHUGS at lycos.com
Wed Oct 6 12:53:51 PDT 2010


Denis Koroskin:

> After hours of debugging I've noticed that dmd does terrible work on TCO.  
> For example, the following produces stack overflow:

I presume TCO is very limited in compilers for C-class languages. Even LLVM, that's supposed to be a back-end fit for functional languages, has limits in its TCO.

Bye,
bearophile


More information about the Digitalmars-d mailing list