home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / arch / 10590 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.9 KB

  1. Path: sparky!uunet!mcsun!uknet!yorkohm!minster!mjl-b
  2. From: mjl-b@minster.york.ac.uk
  3. Newsgroups: comp.arch
  4. Subject: Re: Optimizing Old Code for i586
  5. Message-ID: <721415010.2903@minster.york.ac.uk>
  6. Date: 10 Nov 92 17:03:30 GMT
  7. References: <1992Nov6.194508.9171@tc.cornell.edu>
  8. Reply-To: mjl-b@minster.york.ac.uk (Mathew Lodge)
  9. Organization: Department of Computer Science, University of York, England
  10. Lines: 31
  11.  
  12. In article <1992Nov6.194508.9171@tc.cornell.edu> elan@tasha.cheme.cornell.edu (Elan Feingold) writes:
  13. >OK, I don't read this group, so I don't know if this has been talked about
  14. >much already, but I woke up last night at about 4AM in a cold sweat 
  15. >and with this wierd idea:
  16. >
  17. >Write a program that takes a .exe file and performs the following analysis
  18. >on it:
  19. >
  20. >    a) Break up the code into windows, bounded by branches.
  21. >    b) Rearrange the code within the windows following the i586
  22. >       idea of being able to execute two instructions in a cycle if
  23. >       there are no dependancies.  The idea is that since the 586 only
  24. >       "looks ahead" one instruction, one helps the process by spending
  25. >           time reorganizing the code in the .exe to maximize the chance that
  26. >         the i586 will be able to execute two consecutive instructions                concurrently.
  27. >
  28. >Is this a really stupid idea?
  29. >Would the performance increase be anywhere noticiable?
  30. >Will compilers for the i586 probably perform this optimization?
  31.  
  32. If it turns out to be a useful win, then probably, yes. However, code motion
  33. can cause problems for error handling, and particularly for exception
  34. handling (in those languages that support it -- eg Ada)
  35.  
  36. >|  Elan Feingold       |  .sig currently undergoing renovation...         |
  37.  
  38. Mat
  39.  
  40. | Mathew Lodge                      | "I don't care how many times they go    |
  41. | mjl-b@minster.york.ac.uk          |  up-tiddly-up-up. They're still gits."  |
  42. | Langwith College, Uni of York, UK |  -- Blackadder Goes Forth               |
  43.