This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Could GCC interested in a faster STRSTR function ?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: jfmaquine <jfmaquine at onversity dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Jan 2004 17:13:15 -0200
- Subject: Re: Could GCC interested in a faster STRSTR function ?
- Organization: GCC Team, Red Hat
- References: <3FFC2CA1.3010108@onversity.com>
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