home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / arch / 8449 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.0 KB  |  43 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uunet.ca!geac!itcyyz!yrloc!rbe
  3. From: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
  4. Subject: Re: Translating ML (was Re: MVC and MVCL)
  5. Message-ID: <1992Jul30.061539.20802@yrloc.ipsa.reuter.COM>
  6. Reply-To: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
  7. Organization: Snake Island Research Inc, Toronto
  8. References: <1992Jul27.002600.18548@nntpd.lkg.dec.com> <1992Jul27.170228.10737@ryn.mro4.dec.com>
  9. Date: Thu, 30 Jul 92 06:15:39 GMT
  10. Lines: 31
  11.  
  12. In article <1992Jul27.170228.10737@ryn.mro4.dec.com> leonard@ricks.enet.dec.com () writes:
  13. >
  14. >As I remember, EX on the IBM S/370 is normally used to supply variable arguments
  15. >for some instructions.  A machine-language compiler should replace the EX not
  16. >with a direct emulation of EX, but with a check that the executed instruction was the expected one (move string, for example), and code that either
  17. >simulated the effects directly (doing a variable-length move) or calling the
  18. >run-time simulator (for the unusual case where the instruction has actually been
  19. >modified).
  20. >
  21. >It may be that self-modifying code is actually a problem for compilers of /370
  22. >machine language, but the existence and frequent use of EX is not sufficient
  23. >evidence.
  24.  
  25. EX and Self-modifying code is NOT just a problem for S/370 compilers;
  26. They were the ONLY sane way to perform variable-length operations on
  27. the S/360-S/370 line. Any variable length mover, comparer, etc
  28. (Move x to y for n items) suffered from one of these problems.
  29.  
  30. EX was particularly nasty even in S/370 days, because you could write 
  31. a long move/compare routine using EX or SMF(Self-Mod- Code) which ran
  32. TWICE as fast as the same routine using MVCL, CLCL. Plus, the 
  33. hand-coded routine would let you do overlapped moves or compares, 
  34. which were verboten in the xxxL familar of instructions.
  35.  
  36. Bob
  37.  
  38. Robert Bernecky      rbe@yrloc.ipsa.reuter.com  bernecky@itrchq.itrc.on.ca 
  39. Snake Island Research Inc  (416) 368-6944   FAX: (416) 360-4694 
  40. 18 Fifth Street, Ward's Island
  41. Toronto, Ontario M5J 2B9 
  42. Canada
  43.