This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Variable sized i386 string operations
- To: hubicka at atrey dot karlin dot mff dot cuni dot cz, rth at cygnus dot com
- Subject: Re: Variable sized i386 string operations
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 27 Jan 2000 15:20:56 -0500 (EST)
- Cc: egcs-patches at egcs dot cygnus dot com
> 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