|
|
|
|
|
by IshKebab
191 days ago
|
|
I'm pretty sure you could do it with inline assembly, which targets the actual machine. You could definitely zero registers that way, and a allocator that zeros on drop should be easy. The only tricky thing would be zeroing the stack - how do you know how deep to go? I wonder what Go's solution to that is... |
|
And stack's the main problem, yeah. It's kind of the main reason why zeroing registers is not enough. That and inter-procedural optimizations.