Languages that support stack allocation?

Programming, for all ages and all languages.
OSwhatever
Member
Member
Posts: 595
Joined: Mon Jul 05, 2010 4:15 pm

Re: Languages that support stack allocation?

Post by OSwhatever »

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).
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.
Post Reply