HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
uecker
86 days ago
|
parent
|
context
|
favorite
| on:
Tail-call optimization in C is relatively recent (...
It is a simple counterexample to your incorrect statement.
fluoridation
85 days ago
[–]
It's still impossible in the general case, where not all arguments are passable by registers.
uecker
82 days ago
|
parent
[–]
You are right that there are cases where it is not possible. But it also works when arguments are not passed in registers. The condition then is that there are less stack slots used than in the caller.
https://godbolt.org/z/M4Eqzh3YE
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: