Thread overview | |||||
---|---|---|---|---|---|
|
September 02, 2009 Tail recursion optimization in DMD/LDC? | ||||
---|---|---|---|---|
| ||||
Anyone know offhand if DMD and/or LDC do tail recusion optimization? Not a big deal, just curious. |
September 02, 2009 Re: Tail recursion optimization in DMD/LDC? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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.
|
September 02, 2009 Re: Tail recursion optimization in DMD/LDC? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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
|
Copyright © 1999-2021 by the D Language Foundation