Many programming language runtimes use stacks as their primary storage structure (for example, see the JVM bytecode for an example run).
Remembering quickly, I see the following advantages:
Is the list complete or am I missing something? Are there any programming language runtimes that don't use stacks for storage at all?
I just decided to include a link to one of the most insightful developers, live (and active), Hotspot JVM architect:
When you compare the speed and power of a CPU executing bytecodes, you will see a lot of hardware complexity around the main problems with execution (I skip on a lot of obvious examples, but here's one: the stack location is sucked in because of a direct dependency stack).
http://www.azulsystems.com/blog/cliff-click/2010-04-21-un-bear-able
, , , , , push/pop. , concurrency/, . Go.
" " , (, , ). , , , , , , .
, .., , , .
The stack is also used to pass parameters between methods. As a rule, the parameters will be pushed onto the stack by the caller, and then the interlocutor will know where the parameters are on the stack (offset -ve from the current stack pointer).
Source: https://habr.com/ru/post/1785767/More articles:More efficient database access - performanceC # Interface with a method that returns an implementation of multiple interfaces - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1785764/using-boostdepthfirstsearch-with-visitor&usg=ALkJrhjighl6OlRHBAahLfwASePcKqRUDgАлгоритм выбора лидера - algorithmNeed help with homework PHP - friend matching algorithm - phpHTTP request: destination server could not respond - javaLast.fm wrong api method - pythonHow to cache / serialize a Net :: IMAP object in Ruby / Rails? - ruby | fooobar.comJava applet does not work on Mac, although it works on PC - javaСоздание приложения для среднего размера и Android очень медленно - androidAll Articles