|
CC78K0S Datasheet, PDF (415/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 11 EXTENDED FUNCTIONS
(30) 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 and
memset 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 neither define nor reference variables or functions
EXAMPLE
(C source)
#pragma inline
char ary1[100], ary2[100];
void main()
{
memset(ary1, âAâ, 50);
memcpy(ary1, ary2, 50);
}
Userâs Manual U14872EJ1V0UM
415
|
▷ |