News for hackers. Stuff that matters.
Re:Ada's Dependent Types, and Its Types as a Whole by fpoling on Saturday December 28, 2024 @08:13AM (#42530823)
Technically one does not need the second stack to implement this. One can use the main stack to place all dynamically sized things. The trick is then on the return copy the dynamically sized thing to insert it before the caller return address stored on the stack. The caller will see it then as if the new thing was allocated on its stack after the call.

But using the second stack is just simpler, avoids the extra copies and more compatible with the mainstream ABI.

There are no comments on this comment yet.