memcpy and memset

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
shil_1288831
Level 3
Level 3
25 sign-ins 25 replies posted 10 sign-ins

Hi,

I would like you to send me the source code of the standard library functions: memcpy() and  memset().

Thanks

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Trying to find it by yourself is always a good practice.

But saying "easy" and "doing it" is a totally different story.

So I tried it by my way.

(1) I googled "ARM GCC 5.4" (Sorry, my native tongue is Japanese)

     and I found following page

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-...

000-clipped.JPG

(2) The page looked like

001-GNU_RM_DOWNLOAD.JPG

(3) I scroll down to "5-2016-q2-update"

002-5-2016-q2.JPG

(4) I down loaded the source, which was 184MB in BZ2 format

003-5-2016-q2-update.JPG

(5) Then I uncompressed the archive using Lhaplus and Cygwin

(6) In the src/newlib/newlib/libc/string there they are

004-contents.JPG

Well, not quite difficult if you are familiar with tar and find,

but I don't think that this is a quite easy task either.

Anyway, I attached memcpy.c and memset.c from this version.

moto

View solution in original post

3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I woulld suggest you to go to the GCC community, because the standard compiler for PSoCs is GNU C.

Bob

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

shil,

If you don't get a reply from GCC, you code always code your own memcpy() and memset() functions.  It should be very easy.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Trying to find it by yourself is always a good practice.

But saying "easy" and "doing it" is a totally different story.

So I tried it by my way.

(1) I googled "ARM GCC 5.4" (Sorry, my native tongue is Japanese)

     and I found following page

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-...

000-clipped.JPG

(2) The page looked like

001-GNU_RM_DOWNLOAD.JPG

(3) I scroll down to "5-2016-q2-update"

002-5-2016-q2.JPG

(4) I down loaded the source, which was 184MB in BZ2 format

003-5-2016-q2-update.JPG

(5) Then I uncompressed the archive using Lhaplus and Cygwin

(6) In the src/newlib/newlib/libc/string there they are

004-contents.JPG

Well, not quite difficult if you are familiar with tar and find,

but I don't think that this is a quite easy task either.

Anyway, I attached memcpy.c and memset.c from this version.

moto