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@xxxxxxxxxx> wrote: > From: Ian Lance Taylor <iant@xxxxxxxxxx> > Subject: Re: Enable scheduler of GCC > To: "Le Ton Chanh" <letonchanh@xxxxxxxxx> > Cc: "GCC Help" <gcc-help@xxxxxxxxxxx> > Date: Tuesday, September 23, 2008, 9:21 PM > Le Ton Chanh <letonchanh@xxxxxxxxx> 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