Keil™, An ARM® Company

Technical Support

C166: INLINE EXPANSION OF LIBRARY FUNCTIONS


Information in this article applies to:

  • C166 All Versions

QUESTION

The C166 Compiler User's Guide lists intrinsic functions that are expanded inline.

I have noticed that the strcpy function also generates inline code.

Which library functions are expanded inline and is there a way to disable the inline expansion?

ANSWER

The intrinsic library functions (those in intrins.h) are always expanded inline as documented.

Additionally, the following library routines are expanded inline for near function calls:

  • strcpy
  • strlen
  • strchr
  • strcmp
  • strcat
  • memset
  • memcpy

There is no way to disable inline expansion. However, you may choose a memory model that uses far function calls and library functions (other than those in intrins.h) that are not expanded inline.

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure