|
|
| standard function sources |
|
Kris Allen
Member #4,639
May 2004
|
Hi, I'm a bit curious as to how bread-and-butter functions like memcpy, strcmp, memset, etc, work... are there sources available anywhere, either in C/C++ or assembly? I've just been writing my own functions to do these jobs (no particular reason, just to see if I could), but they're nowhere near as fast as the pre-made ones. Thanks! - Kris |
|
ReyBrujo
Moderator
January 2001
|
It depends on the compiler. You can try downloading the standard GCC library source code and check the functions out. Just check the source of MinGW or DJGPP to get your answers -- |
|
X-G
Member #856
December 2000
|
Glibc source code should be available, probably from gnu.org... -- |
|
Kris Allen
Member #4,639
May 2004
|
I'll try both of those, thanks - Kris |
|
gillius
Member #119
April 2000
|
The standard libraries for C and C++ come in source code form for MSVC as well as GCC. I don't know about other compilers. The GCC standard library is licensed by LGPL, and MSVC's code is obviously not open source -- but you are free to examine it. Gillius |
|
|