Re:Stensal SDK: Retrofitting C/C++ code with quasi-memory-sa...
by stensal on Monday January 14, 2019 @03:01AM
(#18901446)
Heap is a centralized resource. Each allocation/free will have to acquire/release lock. It's much more costly than stack allocation/deallocation. You might get more efficient machine code, but using heap will likely cost more.
Hope this clarify what I meant your idea will make C like Java.
Hope this clarify what I meant your idea will make C like Java.