Skip to content
Vadim Chugunov edited this page Nov 11, 2013 · 1 revision

What if a function marked as [stackless] would allocate its' stack frame on the heap? This would include parameters pushed by the caller and the return address.

Each task would have a "lowest used address" global variable (lowest_used) that records

+

+------------+
| Parameters |
|            |
+------------+
| Ret Addr   |
+------------+
| Locals     |
|            |
+------------+
| Parameters |
|            |
+------------+
| Ret Addr   |
+------------+
| Locals     |
|            |
+------------+

All Categories:

Clone this wiki locally