OSDev.org
https://forum.osdev.org/

Languages that support stack allocation?
https://forum.osdev.org/viewtopic.php?f=13&t=32883
Page 2 of 2

Author:  OSwhatever [ Sat Jul 21, 2018 7:34 am ]
Post subject:  Re: Languages that support stack allocation?

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.

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/