|
|
If the subroutine is not a leaf function, then its values in all or any register can be lost when it invokes another subroutine !!
But if the subroutine does not call any subroutine, it can safely use all register to store the parameters and local variable.
|
|
Example: a method that returns an int typed value
public int sum(int x, int y) { ... return (return_value); } |
|
Therefore:
|
|