2 ms·
"GCC actually does do TCO in some cases (I'm using 4.5.3, and tail-call elimination occurs with -O2 and higher)." Only sibling call optimization, as cdecl does
by pcwalton 14y ago
"GCC actually does do TCO in some cases (I'm using 4.5.3, and tail-call elimination occurs with -O2 and higher)."
Only sibling call optimization, as cdecl doesn't allow TCO in the general case. Rust will do this too.