From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: Re: ev4sched---here it is
Date: Tue, 30 Apr 1996 08:19:15 +0200 (MET DST) [thread overview]
Message-ID: <9604300613.AA05569@nova.tat.physik.uni-tuebingen.de> (raw)
In-Reply-To: <199604241515.IAA11204@koala.azstarnet.com>
> OK, there seems to be considerable interest in the EV4 scheduler. It
> was posted to the net (if memory serves) a few years ago. It's
> probably still somewhere on one of DEC's ftp site.
>
> In any case, I put up a tar file on azstarnet:
>
> ftp://ftp.azstarnet.com/pub/linux/axp/misc/axpsrc-ev4sched-0.0.tar.gz
>
> If somebody wanted to improve it, the first thing to do would be to
> add support for multiple basic blocks.
below is a vrey primitive patch which just passes bigger blocks in
chunks of 512 words.
might be a dump question (I've no real ideas about the problems of writing
a compiler or good code generator):
wouldn't it be easy (or ar least doable) to include this scheduler into the
GCC and get a considerable improvement in performace ?
this can be done either in the code generator stage of gcc (from C to ASM)
or in the assembler itself. or what about a postprocessing program which
just rewrites binaries ?
since this scheduler is available for quite some time and this hasn't been
done already I assume there is a major problem in this easy thinging aproach.
but which one ?
Harald
-------------------------------------------------------------------------------
diff -u ORIG/ev4sched.c ./ev4sched.c
--- ORIG/ev4sched.c Wed Apr 24 17:04:04 1996
+++ ./ev4sched.c Fri Apr 26 20:42:03 1996
@@ -121,7 +121,12 @@
argv[0], argv[i]);
goto cleanup;
}
- schedule_bb_ev4(insts, shdr.s_size/4, offset, reorder);
+ {
+ int i;
+ for(i=0; i<shdr.s_size/4; i+= 512) {
+ schedule_bb_ev4(insts+i, i+512<shdr.s_size/4 ? 512 : shdr.s_size/4-i, offset, reorder);
+ }
+ }
}
fseek(infp, next_section, SEEK_SET);
}
diff -u ORIG/instr-sched.c ./instr-sched.c
--- ORIG/instr-sched.c Sun Jul 16 07:02:25 1995
+++ ./instr-sched.c Fri Apr 26 20:32:12 1996
@@ -1782,7 +1782,7 @@
static unsigned find_node_to_dual_issue (unsigned cycle, unsigned last_node, boolean reorder);
static void add_arc (unsigned node1, unsigned node2, unsigned latency);
static void mark_ending_nodes ();
-static int sort_node_value (void *ent1, void *ent2);
+static int sort_node_value (const void *ent1, const void *ent2);
static void compute_aftercycles ();
static void addres (boolean def, unsigned resource, enum resource_class class);
static void resource_constraints (unsigned resource);
@@ -1844,7 +1844,10 @@
/*
** Clip the number of nodes to the maximum the scheduler can handle.
*/
- assert (number <= MAX_NODES);
+ if (!(number <= MAX_NODES)) {
+ printf("number=%d MAX_NODES=%d, ",number,MAX_NODES);
+ assert (number <= MAX_NODES);
+ }
number_of_nodes = number;
/*
** Copy instructions to buffer and work from that
@@ -2139,7 +2142,7 @@
** Function used as callback routine by the library routine qsort
** to create a sort the array of node_value structures.
*/
-static int sort_node_value (void *ent1, void *ent2)
+static int sort_node_value (const void *ent1, const void *ent2)
{
struct node_value_s *sort1, *sort2;
^[[46;1H^[[K
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
next prev parent reply other threads:[~1996-04-30 6:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-24 15:15 ev4sched---here it is David Mosberger-Tang
1996-04-30 6:19 ` Harald Koenig [this message]
1996-04-30 7:59 ` Richard Henderson
1996-05-02 8:43 ` Harald Koenig
1996-05-02 9:02 ` Linus Torvalds
1996-05-02 15:16 ` Erik Troan
-- strict thread matches above, loose matches on Subject: below --
1996-04-24 18:31 Stephen J. Gaudet
1996-05-02 15:32 David Mosberger-Tang
[not found] <ML-2.2.831027762.3978.torvalds@linux.cs.helsinki.fi>
1996-05-02 15:54 ` Harald Koenig
1996-05-02 16:31 ` Richard Henderson
[not found] <Pine.LNX.3.91.960502111441.7441C-100000@elroy.redhat.com>
1996-05-02 16:21 ` Harald Koenig
1996-05-02 17:16 ` Jim Paradis
1996-05-02 16:28 David Mosberger-Tang
1996-05-02 17:10 David Mosberger-Tang
1996-05-02 20:23 Toon Moene
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox