Tail recursion optimization in DMD/LDC?

bearophile bearophileHUGS at lycos.com
Wed Sep 2 09:48:14 PDT 2009


Nick Sabalausky:
> Anyone know offhand if DMD and/or LDC do tail recusion optimization? Not a 
> big deal, just curious.<

Both perform it, but in both compiler this is a fragile feature, this means that it works only in precise situations. This feature in GCC is more flexible.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list