사용자 정의된 memcpy() 함수 사용

기술노트 17095

아키텍처:

ARM

컴포넌트:

compiler

업데이트:

2018-02-28 오전 1:46

Introduction

This Technical Note describes how to force your application to use your function for copying data.

Discussion

You want the application to use a memcpy() function that you have defined, instead of using the memcpy() , __aeabi_memcpy() , __aeabi_memcpy4() or __aeabi_memcpy8() functions from the runtime library.

There are two recommended ways to override memcpy():

  • Use your own function name, for example my_memcpy(). 
    Note that the library contains calls to __aeabi_memcpy(), __aeabi_memcpy4() and __aeabi_memcpy8(), which will not be replaced.
  • Override the AEABI implementations __aeabi_memcpy(), __aeabi_memcpy4(), and __aeabi_memcpy8(), which are the implementations used by the compiler and libraries.

Conclusion

There might be other ways to force the use of your own memcpy(), but note that these two ways are the recommended ways of forcing the usage.

All product names are trademarks or registered trademarks of their respective owners

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.