Re: Enable scheduler of GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux