This is the mail archive of the gcc@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: GCC driver to "Compile twice, score the assembly, choose the best"?


On Thu, May 15, 2014 at 1:46 PM, Ian Bolton <ian.bolton@arm.com> wrote:
> Hi, fellow GCC developers!
>
> I was wondering if the "gcc" driver could be made to invoke
> "cc1" twice, with different flags, and then just keep the
> better of the two .s files that comes out?

I'd be interested in your .s comparison tool that decides which one
is better!

Richard.

> I'm sure this is not a new idea, but I'm not aware of
> anything being done in this area, so I've made this post to
> gather your views. :)
>
> The kinds of flags I am thinking could be toggled are
> register allocation and instruction scheduling ones, since
> it's very hard to find one-size-fits-all there and we don't
> really want to have the user depend on knowing the right
> one.
>
> Obviously, compilation time will go up, but the run-time
> benefits could be huge.
>
> What are your thoughts?  What work in this area have I
> failed to dig up in my limited research?
>
> Many thanks,
> Ian
>
>
>
>


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