Home arrow Support arrow Forums

Luminary Micro Forums

jrmymllr

Platinum Boarder

2008/08/11 13:36

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

      Topics Author Date
    thread link
For sharing: Memory copy routine
rocksoft 2008/07/24 10:19
    thread link
thread linkthread link Re:For sharing: Memory copy routine
jrmymllr 2008/08/11 13:36
    thread link
thread linkthread linkthread link Re:For sharing: Memory copy routine
rocksoft 2008/08/11 16:12
    thread link
thread linkthread linkthread linkthread link Re:For sharing: Memory copy routine
jrmymllr 2008/08/12 05:49
    thread link
thread linkthread linkthread linkthread linkthread link Re:For sharing: Memory copy routine
rocksoft 2008/08/12 06:03
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:For sharing: Memory copy routine
jrmymllr 2008/08/12 16:05
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:For sharing: Memory copy routine
rocksoft 2008/08/12 16:43
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:For sharing: Memory copy routine
ravaz 2008/08/13 07:30
    thread link
thread linkthread link Re:For sharing: Memory copy routine
Riveywood 2008/08/28 04:09
    thread link
thread linkthread linkthread link Re:For sharing: Memory copy routine
rocksoft 2008/08/28 05:48