[RFC] Notes on QUIT and STREQ et.al.

J.T. Conklin jtc@redback.com
Mon Mar 13 12:13:00 GMT 2000


>>>>> "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


More information about the Gdb-patches mailing list