C tail call optimization

后端 未结 8 949
陌清茗
陌清茗 2021-01-31 16:25

I often hear people say that C doesn\'t perform tail call elimination. Even though it\'s not guaranteed by the standard, isn\'t it performed in practice by any decent implement

8条回答
  •  甜味超标
    2021-01-31 17:16

    To answer you last question: The standard should definitely not make any statements about optimization. There may be environments where it is more or less difficult to implement.

提交回复
热议问题