3 ms·
Preservation of stack data is done by comparing addresses of stack allocated values and using memcpy to copy the space in between. That's the most straight forw
by codr4life 10y ago
Preservation of stack data is done by comparing addresses of stack allocated values and using memcpy to copy the space in between. That's the most straight forward solution I could come up with. I'm still working on a way to track the variables automagically, which is why the optimization level is set to 0 for now; looks like I might end up having to add a third macro for preserved vars.