English
Language : 

CC78K4 Datasheet, PDF (436/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
(38) Memory manipulation function
Memory Manipulation Function
#pragma inline
FUNCTION
• An object file is generated by the output of the standard library memory manipulation functions memcpy,
memset, memchr, and memcmp with direct inline expansion instead of function call.
• When there is no #pragma directive, the code that calls the standard library functions is generated.
EFFECT
• Compared with when a standard library function is called, the execution speed is improved.
• Object code is reduced if a constant is specified for the specified character number.
USAGE
• The function is described in the source in the same format as a function call.
• The following items can be described before #pragma inline.
• Comments
• Other #pragma directives
• Preprocessing directives that do not generate variable definitions/references or function
definitions/references
EXAMPLE
(C source)
#pragma inline
char ary1[100], ary2[100];
void main()
{
memset(ary1, ‘A’, 50);
memcpy(ary1, ary2, 50);
}
436
User’s Manual U15556EJ1V0UM