forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Bikeshed Stackless
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 | | | +------------+