Keil Logo

C251: INDIRECT FUNCTION CALLS


Information in this article applies to:

  • C251 Version 2.00

QUESTION

I'm using C251 Version 2 and need help with function pointers and reentrancy.

ANSWER

C251 Version 2 introduces a new compiler directive FUNCTIONS. This directive specifies whether functions pass parameters in fixed memory locations (like previous versions) or whether parameters are passed on the stack (like most C compilers where stack space is not an issue).

To pass parameters on the stack, compile your code as follows:

C251 mycode.c  FUNCTIONS(REENTRANT)

When compiled this way, you have no limitations with regards to function pointers, indirect function calls, and reentrancy.

Last Reviewed: Sunday, January 30, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.