answersLogoWhite

0

When a function gets called, the processor first stores the address of the calling function in a structure called activisation structure and jumps to the called function. Then it allocates the memory for the local variables and initializes them. Then it does the processing in that function. After that it deallocates the memory allocated for the local variables and returns to the calling function. When a function gets called, the processor first stores the address of the calling function in a structure called activisation structure and jumps to the called function. Then it allocates the memory for the local variables and initializes them. Then it does the processing in that function. After that it deallocates the memory allocated for the local variables and returns to the calling function.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

What is link section in c program?

the link section provides instruction to the compiler to the link function from the system library.


What is the difference between compiler and program?

A compiler is actually a program. However the function of a compiler it to take a programmers high level language code and render this as binary machine language instructions that a specific processor can execute.


What is the function of XRA instruction?

What is the function of XRA instruction


How the compiler compiles overloaded method?

method overloading occurs when we use two functions or more with the same name.In function overloading compiler detect which method is call actually throw the parameters passed to the methods.In function overloading parameters of functions are different.


Why you use main function in c?

Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.


When and how a c compiler generate actual function from its template?

At the point it is used.


What is difference function prototype and function define in turbo c?

In C, a function prototype is a declaration to the compiler that a certain function exists, without a full definition. This allows other functions to call that function. The linker will later make sure that a function definition actually exists (perhaps somewhere else), and will turn the call to the function to a call to the correct function.


Why the compiler start its execution from main function?

i think as the compiler bind all the functions and source code starting from main hence all that make the compiler directed to execute it from the very same point


Why we use function prototyping in c language?

You could just define the whole function before it is called, like this:void do_nothing(){}main(){do_nothing();}but if you define the function after it is called, the compiler will arrive at the function's calling before its actual definition. If you prototype your function earlier in the code than the function's call, the compiler will look for the function first.Hope I was able to help.


How does the compiler differentiate the statement and function in C programming?

statement should not return a value but function returns a value


What is the instruction for exit in 8085 microprocessors?

There is no exit instruction in the 8085. Do you mean return, as in from a function or interrupt? If so, the instruction is RET.


How does the compiler interpret more than one definition of the same name?

The compiler disambiguates function overloads by their signatures. A function's signature is defined by its name and its formal parameters, but not the return type. As you probably know, function overloads cannot differ by return type alone, thus the return type does not form any part of the signature. The compiler determines which function to call based upon the arguments that are passed by the individual callers.