cperl icon indicating copy to clipboard operation
cperl copied to clipboard

builtin tailcall optimization

Open rurban opened this issue 9 years ago • 0 comments

Replace every call in tail position within a body with a @_=(..args..); goto &call;

Not done here:

  • fix goto for sigs, esp. copy modified args back to the stack when calling a sig. #7
  • implement ($arg, ...) { call(...) } for fast stack adjustments. As in goto, but with the possibility to add or remove args from the callstack.

rurban avatar Dec 12 '15 22:12 rurban