Yep but that would probably break predictability. In low level code I wouldn't rely on some malloc being optimized away, and rather write code explicitly without allocations.
In High level languages, Escape analysis exists.
In High level languages, Escape analysis exists.
No comments yet.