3 ms·
JVM doesn't have a way to call another method without pushing the caller onto the stack. x86's jump instruction does that, and on x86 you can directly change th
by lukego 17y ago
JVM doesn't have a way to call another method without pushing the caller onto the stack. x86's jump instruction does that, and on x86 you can directly change the stack pointer too.
- stonemetal 17y agoIt seems like you could work around it. Have a function eval that evaluates each function called. Each function is modified such that it returns either enough information for eval to make the tail call or the value returned by the function which eval would return.