This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to override the standard library functions like memcpy, memset and memmove etc in ARM.

Note: This was originally posted on 12th March 2012 at http://forums.arm.com

Hi,

I would like to call a user defined memcpy, memset etc functions and avoid the usage of standard ARM library functions.
What are the possible ARM compiler settings or macro's to be enabled to achive this?


Regards,
Mallikarjun
Parents
  • Note: This was originally posted on 12th March 2012 at http://forums.arm.com


    I would like to call a user defined memcpy, memset etc functions and avoid the usage of standard ARM library functions.
    What are the possible ARM compiler settings or macro's to be enabled to achive this?


    1) Use C preprocessor to replace memcpy => my_memcpy
    2) Write your own and be sure to link first before standard lib is linked.

    This should work, but not for the case where the compiler uses build-in memcpy/memset in cases like this:

    char a[4] = {0};

    But I am sure the manual might give you some hints too.
Reply
  • Note: This was originally posted on 12th March 2012 at http://forums.arm.com


    I would like to call a user defined memcpy, memset etc functions and avoid the usage of standard ARM library functions.
    What are the possible ARM compiler settings or macro's to be enabled to achive this?


    1) Use C preprocessor to replace memcpy => my_memcpy
    2) Write your own and be sure to link first before standard lib is linked.

    This should work, but not for the case where the compiler uses build-in memcpy/memset in cases like this:

    char a[4] = {0};

    But I am sure the manual might give you some hints too.
Children
No data