|
Message
From: cvs at opencores.org<cvs@o...>
Date: Sun Jul 23 14:23:15 CEST 2006
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/06/07 23:14:23 Modified: jop/java/tools/src/com/jopdesign/wcet WCETInstruction.java Log: added a main to print out the bytecode timing Revision Changes Path 1.7 jop/java/tools/src/com/jopdesign/wcet/WCETInstruction.java http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/wcet/WCETInstruction.java.diff?r1=1.6&r2=1.7 (In the diff below, changes in quantity of whitespace are not shown.) Index: WCETInstruction.java =================================================================== RCS file: /cvsroot/martin/jop/java/tools/src/com/jopdesign/wcet/WCETInstruction.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- WCETInstruction.java 22 Jun 2006 09:54:50 -0000 1.6 +++ WCETInstruction.java 23 Jul 2006 12:23:15 -0000 1.7 @@ -172,6 +172,15 @@ return sb.toString(); } + public static void main(String[] args) { + + for (int i=0; i<256; ++i) { + int cnt = getCycles(i, false, 0); + if (cnt==-1) cnt = 0; + System.out.println(cnt); + } + } + /** * Returns the wcet count for the instruction. *
|
 |