News for hackers. Stuff that matters.
Re:What is “the stack”? by kd5bjo on Thursday March 03, 2016 @08:18AM (#11216636)
One slight correction: all of the memory setup is done by the operating system before the program starts at all. An executable file is basically a memory dump -- to start the program, the OS sets up some virtual memory space, copies the program into it(1), and then jumps to a predefined spot in the memory it just copied.

(1) This step is a bit more complicated due to dynamically-linked libraries

Re:What is “the stack”? by mattlutze on Thursday March 03, 2016 @02:21PM (#11219259)
You're absolutely right and I should have been clearer there. Thanks!