This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [RFC] Notes on QUIT and STREQ et.al.
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: [RFC] Notes on QUIT and STREQ et.al.
- From: jtc at redback dot com (J.T. Conklin)
- Date: 13 Mar 2000 12:13:42 -0800
- Cc: Kevin Buettner <kevinb at cygnus dot com>, Andrew Cagney <ac131313 at cygnus dot com>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.10.10003130829420.6968-100000@localhost.localdomain>
- Reply-To: jtc at redback dot com
>>>>> "Daniel" == Daniel Berlin <dan@cgsoftware.com> writes:
>>
>> I haven't looked to see how often (or where) STREQ and STRCMP are
>> used, but these macros compare the first characters inline in an
>> attempt to improve performance. Have you assessed the benefits of
>> doing this? (If these optimizations significantly improve
>> performance, I think they should stay.)
Daniel> I'll check out the performance. I know GCC has a strlen
Daniel> expander, but no strcmp expander, so it might be a benefit.
I thought that GCC can expand strcmp() if the target has a cmpstrsi
pattern.
--jtc
--
J.T. Conklin
RedBack Networks