Call site

From Wikipedia, the free encyclopedia

In programming, a call site of a function or subroutine is the location (line of code) where the function is called (or may be called, through dynamic dispatch). A call site is where zero or more arguments are passed to the function, and zero or more return values are received.[1][2]

 // this is a function ''definition''
 function sqr(x)
 {
   return x * x;
 }
 function foo() {
   // these are two call sites of function sqr in this function
   a = sqr(b);
   c = sqr(b);
 }

Assembler example

See also

References

Related Articles

Wikiwand AI