use of memset and optimization
jaltman at columbia.edu
Fri Nov 8 11:03:01 EST 2002
> >>>>> "jaltman" == Jeffrey Altman <jaltman at columbia.edu> writes:
> jaltman> Just wondering. What are the declarations for memset() in the header
> jaltman> files that come with those compilers?
> extern void *memset(void *, int, size_t);
> That's the solaris 8 declaration of memset(). Both gcc 2.95.3 and gcc
> 3.0.3 fail to provide their own version of string.h.
This function is not marked to be inlined. Therefore from my
perspective the compiler's behavior is incorrect because
the compiler is making an assumption as to what the memset() function
does. The compiler is in effect subsitituting its own definition with
one provided by the run time library which is no longer being linked
to the application.
Jeffrey Altman * Sr.Software Designer Kermit 95 2.0 GUI available now!!!
The Kermit Project @ Columbia University SSH, Secure Telnet, Secure FTP, HTTP
http://www.kermit-project.org/ Secured with MIT Kerberos, SRP, and
kermit-support at columbia.edu OpenSSL.
More information about the krbdev