This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Enable scheduler of GCC
- From: Le Ton Chanh <letonchanh at yahoo dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 24 Sep 2008 08:29:49 -0700 (PDT)
- Subject: Re: Enable scheduler of GCC
Thank you for your help. Now my GCC ran with '-dS' and '-dR' option. It's helpful for debug my automata.
Le Ton Chanh
email:letonchanh at yahoo dot com
--- On Tue, 9/23/08, Ian Lance Taylor <iant@google.com> wrote:
> From: Ian Lance Taylor <iant@google.com>
> Subject: Re: Enable scheduler of GCC
> To: "Le Ton Chanh" <letonchanh@yahoo.com>
> Cc: "GCC Help" <gcc-help@gcc.gnu.org>
> Date: Tuesday, September 23, 2008, 9:21 PM
> Le Ton Chanh <letonchanh@yahoo.com> writes:
>
> > I am a beginner in porting GCC. I have defined an
> automata for sheduling of my port. But it seems not to run.
> > When configuring, I used the option
> '--with-schedule' and '--enable-haifa'.
> > When using gcc-cross, I used the option
> '-fschedule-insns', '-fschedule-insns2' and
> I tried to dump debug infomation of scheduling by
> '-dS' and -'dR' but it generated nothing. I
> am using GCC 3.3.4 for my port.
> > Please help me to enable the scheduler and generate
> scheduling debug information.
>
> In order to enable the scheduler you need to write
> appropriate clauses
> in your MD file. See the internal documentation. In
> current gcc you
> need to write define_automaton, define_cpu_unit, and
> define_insn_reservation clauses. I think gcc 3.3 still
> used the old
> scheduler which worked differently.
>
> Assuming you have written those, then you need to optimize
> (with -O)
> in order for the scheduler to run.
>
> Ian