Keil Logo

Function Parameters

C functions may pass parameters in registers and/or fixed memory locations. The REGPARMS and NOREGPARMS directives enable and disable parameter passing using registers.

Parameters are passed in fixed memory locations if parameter passing in registers is disabled, or if too many parameters are passed to fit in registers.

Typically, you use register parameters. The examples referred to only describe this way of parameter passing. Refer to Using the SRC Directive for an example.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.