I want to understand at low level how an input is given to a function. What exactly happens once a function runs? For example, consider the following:
int foo(int t1, int t2)
{
Function defintion goes here
}
Then later in the code
main()
{
.
.
int a= foo(23, 24);
.
.
}
Suppose the code is compiled successfully and we get a binary file, i.e an .exe file corresponding to our high level source code. I want to understand at what level the inputs are given to functions internally and what exactly happens when we double click on this .exe file. What softwares/hardwares come into play after clicking the .exe? I will appreciate if some can give me a brief description.
As requested
O.S: Windows CPU: Intel Core2Duo