Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where does the stack and program arguments get setup for a process in Syscall Emulation mode?

0
0 Posted

Where does the stack and program arguments get setup for a process in Syscall Emulation mode?

0
0

A good point of reference for this is the “argsInit” function in the src/sim/process.cc file. For Syscall Emulation, each process is given a “LiveProcess” object and that function initializes the arguments to that process and also sets up the initial stack for that process. You’ll also notice that the architecture specific Process objects (e.g. AlphaLinuxLiveProcess found in arch/alpha/linux/process.hh) derive from the LiveProcess object too.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123