Questions tagged [trampoline]

Trampoline (programming) has a number of meanings, and is generally associated with jumps (i.e., moving to different code paths).

Filter by
Sorted by
Tagged with
6
votes
1answer
213 views

Implement Scala-like Trampoline to gain tail call optimization in Rust

On the topic of tail call optimization, I found two RFCS: 271 and 1888. Until this gets implemented, I wanted to do something inspired from Scala's Trampoline ...
7
votes
0answers
222 views

C++ constexpr trampoline

For fun, I implemented a trampoline function for C++ constexpr functions, since the recursion limit for constexpr functions is ...
2
votes
1answer
470 views

Static to Instance method trampolining with templates

I finally have a working trampoline mechanism. Would anyone care to critique it? Ideone ...
3
votes
1answer
801 views

Recode C -> C++ trampoline function macros using templates [closed]

I'm reworking PyCXX (C++ wrapper for Python). I'm currently examining the following macro code, and wondering whether there is a way to write it using templates rather than macros. If so, the ...
8
votes
1answer
221 views

Factorial using trampolines

I've translated this Java code into Delphi code: ...
12
votes
1answer
636 views

Trampoline Interceptor

Aim In C#, the following method will cause a StackOverFlowException if called with parameter 0: ...
2
votes
1answer
2k views

Nios 2 interrupt handler

This is homework for which we have prepared Nios 2 assembly: ...