[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


parameter

Description:

Specifies the use of registers to pass parameters.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC
NEC V800
Intel x86
MIPS

Embedded 68K

Prototype:
  #pragma parameter return-reg func-name(param-regs) Remarks:

This pragma applies to 68K programming only.

The compiler passes the parameters for the function func-name in the registers specified in param-regs instead of the stack, and returns any return value in the register return-reg. Both return-reg and param-regs are optional.

Here are some samples:


#pragma parameter __D0 Gestalt(__D0, __A1)
#pragma parameter __A0 GetZone
#pragma parameter HLock(__A0)

When you define the function, you need to specify the registers right in the parameter list, as described in the appropriate Targeting manual.

This pragma does not correspond to an option in any settings panel.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000