Re:For sharing: Memory copy routine
rocksoft wrote: Hi,
I recently finished a "memcpy" replacement and thought it might be useful for others...
I've put some instructions and the code here:
http://www.rock-software.net/downloads/memcpy/
Hope it works for you as well as it did for me.
Liam.
Thank you for sharing this. I'm going to try it since my project uses a lot of memcpy and I'm suspecting I can save some CPU cycles with a better implementation. Question though, since I am pretty clueless on including assembly into C source. I added your .s file into my makefile; I had to change the comment characters (from // to @) otherwise my compiler seems to like it. I'm using CodeSourcery GCC. I extern'ed MEM_DataCopy(int, int, int), and made a call to the function in my code which I thought might work but didn't. I get an "undefined reference to MEM_DataCopy". Any tips on getting this to work?
Thanks again for sharing this.
login or register to reply
|