1 / 15

Peephole Contest 2008

Peephole Contest 2008. COMP 520. Final Ranking (Total). A-. Submissions. Sound or unsound?. Constant folding iconst_x iconst_y iadd || isub || imul || idiv || irem ---------> ldc x op y. Sound or unsound?. StringBuffer aload x dup ifnull label_1 goto label_2

kareem
Download Presentation

Peephole Contest 2008

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Peephole Contest 2008 COMP 520

  2. Final Ranking (Total) A-

  3. Submissions

  4. Sound or unsound? Constant folding iconst_x iconst_y iadd || isub || imul || idiv || irem ---------> ldc x op y

  5. Sound or unsound? StringBuffer aload x dup ifnull label_1 goto label_2 label_1: pop ldc "null" label_2: ------------------------> new j/l/StringBuffer dup invokenonvirtual j/l/StringBuffer/<init>()V aload x invokevirtual j/l/StringBuffer/append(Lj/l/String;)Lj/l/StringBuffer; invokevirtual j/l/StringBuffer/toString()Lj/l/String;

  6. Sound or unsound? StringBuffer invokevirtual j/l/String/concat(Lj/l/String;)Lj/l/String; dup ifnonnull lbl1 pop ldc "null" label lbl1 ---------> invokevirtual j/l/String/concat(Lj/l/String;)Lj/l/String;

  7. Sound or unsound? Dead code elimination

  8. Rules to keep in mind • Ok to assume “sensible code”, i.e. verifyable code • Should not assume certain code-generation scheme • Why? Times change, and code generation schemes, too!

  9. Results Tatatataaaaa….

  10. 2004 Benchmarks Group 5 javac Group 1 Group 4 A+ A-

  11. 2007 Benchmarks javac Group 5 Group 4 Group 1 A+ A-

  12. 2008 Benchmarks Group 5 javac Group 1 A+ Group 2 A-

  13. Most gain for the pain Group 4 Group 3 Group 2

  14. Final Ranking (Total) Group 5 javac Group 1 Group 4 A+ A-

  15. COMP 520 PRESENTS Winners of the Peephole Contestof the Year 2008 GROUP 5 NingJia Alexis Malozemoff Wei Wu November 21st, 2008 Eric Bodden & ReehanShaikh

More Related