digitalmars.D.learn - Tail recursion optimization in DMD/LDC?
- Nick Sabalausky (2/2) Sep 02 2009 Anyone know offhand if DMD and/or LDC do tail recusion optimization? Not...
- Jarrett Billingsley (2/4) Sep 02 2009 I'm about 95% certain that DMD does it.
- bearophile (4/6) Sep 02 2009 Both perform it, but in both compiler this is a fragile feature, this me...
Anyone know offhand if DMD and/or LDC do tail recusion optimization? Not a big deal, just curious.
Sep 02 2009
On Wed, Sep 2, 2009 at 8:32 AM, Nick Sabalausky<a a.a> wrote:Anyone know offhand if DMD and/or LDC do tail recusion optimization? Not a big deal, just curious.I'm about 95% certain that DMD does it.
Sep 02 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
Sep 02 2009