What are the disadvantages if a subroutine?

Disadvantages. Invoking a subroutine (versus using in-line code) imposes some computational overhead in the call mechanism. A subroutine typically requires standard housekeeping code – both at entry to, and exit from, the function (function prologue and epilogue – usually saving general purpose registers and return address as a minimum).
For More Information Please Refer:


You May Also Like to Read: