|
Prev: Newbie with a memory fault question
Next: I couldnt find what is the wrong part of the function,could you helppp
From: Tim Frink on 15 Nov 2007 07:35 Hi, I was wondering where the standard C function (like memcpy) on my Linux machine come from? It seams that they are contained in some libraries like libgcc.a which are linked with the program that is being compiled. But I couldn't find the C sources (obviously just the headers). Are they available somewhere? (I need the sources for some analyses). If so, any idea where? Best regards, Tim
From: Richard Heathfield on 15 Nov 2007 07:57 Tim Frink said: > Hi, > > I was wondering where the standard C function (like memcpy) > on my Linux machine come from? > > It seams that they are contained in some libraries like > libgcc.a which are linked with the program that is being compiled. > But I couldn't find the C sources (obviously just the headers). > Are they available somewhere? (I need the sources for some analyses). > If so, any idea where? Have you tried searching the Web? http://www.google.com/search?hl=en&safe=off&q=gnu+glibc+memcmp+source reveals some promising-looking pages. -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999
From: George Huber on 15 Nov 2007 20:19
Tim Frink wrote: > Hi, > > I was wondering where the standard C function (like memcpy) > on my Linux machine come from? > > It seams that they are contained in some libraries like > libgcc.a which are linked with the program that is being compiled. > But I couldn't find the C sources (obviously just the headers). > Are they available somewhere? (I need the sources for some analyses). > If so, any idea where? > > Best regards, > Tim > Your Linux distribution should have come with a source RPMS, the package you are looking for is the libc package. Failing that you can always download the libc source code from a number of places. Be advised, that is not the easiest code to read -- primarily due to the need to run on a wide range of platforms. George |