Re: Languages that support stack allocation?
Posted: Sat Jul 21, 2018 7:34 am
In normal application programming this might not matter that much, however in system (OS, embedded) programming this matters a lot. Using the stack more extensively can help a lot (reduce fragmentation, speed, locking, in some cases dynamic allocators aren't even available). Also you want explicit control over memory allocation meaning the compiler shouldn't have any own idea from where it should obtain the memory.fano1 wrote:My opinion is that the right solution is not to focus too much in this little details a good language should have fast heap allocation, a garbage collector and do stack escape analysis automatically (Java does this already, C# is working on it).