fork.science

Question: How does a system use the stack for function calls?
Hint: Compilers are here presumed part of the system.

A Stack is not used for function calls, it's just a data structure that could be used by some programs for last-in first-out (LIFO) B Function calls jump to the code of the function and then (to not disturb prior register values) only use the stack segment in memory
C Current context (current address, register values etc) are backed up on process's stack before jumping to function code