[Solved]Goal Project Display Environment Variables Attached Program Process Also Trace Stack Rele Q37202209
How can I answer this question in C?


You goal in this project is to display the environment variables attached to the program (process) and. also trace the stack with all the relevant registers. In particular, you will see how a new stack frame is created every time a function is called, and how the previous stack frame is restored when the function returns. You will also show how the instruction pointer is restored as well. Create two simple functions called urnamel and urname.2 1. Main will display the environment variables (here is a sample code; you could stop after 2 or 3 variables; the code below will list all of them, which could be a lot!) int main(int arEs, char “argv.I], char enve) int i for (i:0; envelj != NULL; ) printf(“, envel) return e It will then call urnamel with at least two argument (add few more statements after the call to show how we will restore the instructions pointer for main) Additionally, create some local variables and an array of integers. a. b. 2. urnamel will call urname2 with at least one arguments (add few more statements after the call to show how we will restore the instructions pointer for fool) Additionally, create some local variables and an array of characters. a. Show transcribed image text You goal in this project is to display the environment variables attached to the program (process) and. also trace the stack with all the relevant registers. In particular, you will see how a new stack frame is created every time a function is called, and how the previous stack frame is restored when the function returns. You will also show how the instruction pointer is restored as well. Create two simple functions called urnamel and urname.2 1. Main will display the environment variables (here is a sample code; you could stop after 2 or 3 variables; the code below will list all of them, which could be a lot!) int main(int arEs, char “argv.I], char enve) int i for (i:0; envelj != NULL; ) printf(“, envel) return e
It will then call urnamel with at least two argument (add few more statements after the call to show how we will restore the instructions pointer for main) Additionally, create some local variables and an array of integers. a. b. 2. urnamel will call urname2 with at least one arguments (add few more statements after the call to show how we will restore the instructions pointer for fool) Additionally, create some local variables and an array of characters. a.
Expert Answer
Answer to You goal in this project is to display the environment variables attached to the program (process) and. also trace the s… . . .
OR

