This is the mail archive of the gcc-patches@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]

Re: Variable sized i386 string operations


 > From: Jan Hubicka <hubicka@atrey.karlin.mff.cuni.cz>
 >  
 > OK. So I maybe I can suggest something like:
 >  
 >  -mno-align-stringops to disable alignment handling
 >  -minline-all-stringops to enable aggresive inlining of stringops
 >  -(perhaps we
 >     can enable it for -O3?)
 >  
 > and control all three (memset, memcpy and strlen) expanders using
 > this.
 >  
 > The strlen expander is quite problematic. The strings are likely to
 > be small and the alignment is likely to be unknown.  The size of
 > function calling strlen now is 90 bytes now (and it was even larger
 > before my last optimization patch)


Isn't this what we use -Os for?  Why not use that to control whether
we do the code size increasing expansion?

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

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