Programmers were passing data structures into functions long before 1966, when Dahl and Nygaard moved the function call stack frame to the heap and invented OO.
Программисты передавали структуры в функции задолго до 1966 года, когда Даль и Нюгор перенесли кадр стека функции в динамическую память и изобрели ОО.
Alte rezultate
Print a trace of templates calls (frame stack) and print the working directory.
In most compiled programs, this local state is stored on the call stack in a data structure called a stack frame or activation record.
В большинстве скомпилированных программ, это локальное состояние хранится на стеке вызовов в структуре данных, называемой кадром стека.
Every time you call a method, a new stack frame is generated.
The stack frame enables easy tracking of function calls and returns.
Recursive functions create multiple stack frames for each call made.
The stack frame holds the local variables for each subroutine call made.
In fact, it turns out that if you have a recursive function that calls itself as its last action, then you can reuse the stack frame of that function.
В самом деле оказывается, что если у вас есть рекурсивную функцию, которая называет себя как его последнее действие, то вам можно повторно использовать кадр стека из этой функции.
Therefore, the stack frame containing the called function's state variables must not be deallocated when the function returns, violating the stack-based function call paradigm.
Поэтому кадр стека, содержащий состояние вызываемой функции не должен быть освобождён при её возврате, нарушая стеково-ориентированную парадигму вызова функций.
Optimizing the call stack can lead to faster program performance.
Оптимизация стека вызовов может привести к более быстрому выполнению программы.
Continue running until just after function in the selected stack frame returns.
Продолжить выполнение до возврата из функции в выбранном кадре стека.
There are several other commands to print information about the selected stack frame.
Существуют несколько других команд для вывода информации о выбранном кадре стека.
Stack overflow occurs when too many stack frames are created.