ILE C/C++ Programmer's Guide

Passing Arguments in Registers

Function call performance can be improved if the system has all of the arguments passed in registers. Because there are only a limited number of registers, in order to increase the chance of having all arguments passed in registers, combine several arguments into a class and pass the address of the class to the function. Because an address is being passed, pass-by-reference semantics are used, which may not have been the case when the arguments were being passed as individual variables.

For more information about passing arguments in registers, see:

For more information about storage classes, see:


[ Top of Page | Previous Page | Next Page | Table of Contents ]