HPlogo PA-RISC Procedure Calling Conventions Reference Manual > Chapter 4 The Actual Call

4.2 Efficiency

MPE documents

Complete PDF
Table of Contents

The following factors greatly reduce the overhead expense involved in a PA-RISC procedure call:
  1. Allocation of the stack frame and saving of one callee-saves register can be accomplished in a total of one cycle. (The same is also true for the deallocation of the frame and restoration of one register.)

  2. Even when not optimizing, the delay slot (i.e. the instruction slot following a Branch instruction) is used for operations such as loading register values and passing parameters.

  3. Most of the steps involved in a call are optional if they are unnecessary in a particular situation. (For example, saving and restoring RP, saving and restoring callee-saves registers, allocating stack storage space, etc.)




4.1 Control Flow of a Standard Procedure Call


4.3 The Code Involved in a Simple Local Call