From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199604241710.RAA10230@moondance.np.ac.sg> Date: Wed, 24 Apr 1996 17:11:31 +0800 (SST) From: Robert Allen Barker Subject: RE: EV5 instruction scheduler David, RE: EV5 scheduler I agree and think it would be real nice to have an EV5 instruction scheduler, and I think I was the one that asked before. I have made extesive use of the ev4 version of the scheduler for real time image processing work and think it's a gem. We wrote some tools that allow you to put some begin and end statements in the C source and the marked asm code is automatically optimized and pasted back in before the assembler. As for its accuracy, we found that it was dead on to the clock cycle pretty much all the time, of course the EV4 can't be that tough, wait till the EV6. Allan > > I still think it would be awesome to have a sample ev5 scheduler like > the one that was provided for the ev4 (see example below). The > pipeline diagrams are extremely handy for manually optimizing assembly > code. And to be honest, the ev4 scheduling rules already were beyond > me to get them right for anything but trivial code, so I don't even > think about calculating this stuff by hand. > > Somebody else asked for such a sample scheduler before and I haven't > seen any responses, but I haven't quite given up on it just yet. > > --david > > $ ev4sched foo.o > Basic block before code scheduling > |.I | 1 00000004 1 LDD F8,0(R0) > | I | 2 00000008 2 LDD F1,8(R16) > | .I | 3 0000000C 3 LDD F9,8(R0) > | I | 4 00000010 4 MULG F0,F5,F0 > | ......I | 10 00000014 5 ADDG F8,F0,F8 > | I | 11 00000018 6 MULG F1,F5,F1 > | ......I | 17 0000001C 7 ADDG F9,F1,F9 > | I | 18 00000020 8 LDA R16,10(R16) > | .I| 19 00000024 9 CMPLT R16,R10,R11 > |I | 20 00000028 10 LDA R0,10(R0) > |..I | 22 0000002C 11 STD F8,0(R0) > | I | 23 00000030 12 STD F9,8(R0) > | I | 23 00000034 13 BNE R11,0 > > Basic block after code scheduling > |01234567890123456789| Cycle Offset Number Instruction > |I | 0 00000000 0 LDD F0,0(R16) > |.I | 1 00000004 2 LDD F1,8(R16) > | I | 2 00000008 1 LDD F8,0(R0) > | I | 2 0000000C 8 LDA R16,10(R16) > | I | 3 00000010 4 MULG F0,F5,F0 > | I | 3 00000014 3 LDD F9,8(R0) > | I | 4 00000018 6 MULG F1,F5,F1 > | I | 4 0000001C 10 LDA R0,10(R0) > | I | 5 00000020 9 CMPLT R16,R10,R11 > | ....I | 9 00000024 5 ADDG F8,F0,F8 > | I | 10 00000028 7 ADDG F9,F1,F9 > | ...I | 13 0000002C 11 STD F8,0(R0) > | I | 14 00000030 12 STD F9,8(R0) > | I | 14 00000034 13 BNE R11,0 > > -- > To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null > >