This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Conditional compilation


StÃphane FORNENGO <sfornengo@gmail.com> writes:

> Is the following idea possible ?
> take for example the strcmp function with the standard following code:

...

> this usages could be detect at compile time and the function code
> greatly optimized knowing this information !

Yes, this is possible, and the x86 backend already uses this
information, when available, when selecting the strcmp strategy.  This
kind of optimization is inherently machine dependent; I'm not sure
whether any other backends implement it.

Ian


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