This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Could GCC interested in a faster STRSTR function ?


On Jan  7, 2004, jfmaquine <jfmaquine@onversity.com> wrote:

> I supposed the new approch could be either use to speed some GCC code

Not really.  GCC itself doesn't implement strstr, it defers to the
implementation in the C library of the OS it targets (or runs on, for
that matter).  The only built-in optimizations it performs on strstr
is to pre-compute the result in the rare cases in which it can be
computed at compile time.

You may want to get in touch with the developers of GNU libc and other
free libraries, if you're willing to license your implementation in
terms compatible with such libraries.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Happy GNU Year!                     oliva@{lsd.ic.unicamp.br, gnu.org}
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]