home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!uunet.ca!geac!itcyyz!yrloc!rbe
- From: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
- Subject: Re: Translating ML (was Re: MVC and MVCL)
- Message-ID: <1992Jul30.061539.20802@yrloc.ipsa.reuter.COM>
- Reply-To: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
- Organization: Snake Island Research Inc, Toronto
- References: <1992Jul27.002600.18548@nntpd.lkg.dec.com> <1992Jul27.170228.10737@ryn.mro4.dec.com>
- Date: Thu, 30 Jul 92 06:15:39 GMT
- Lines: 31
-
- In article <1992Jul27.170228.10737@ryn.mro4.dec.com> leonard@ricks.enet.dec.com () writes:
- >
- >As I remember, EX on the IBM S/370 is normally used to supply variable arguments
- >for some instructions. A machine-language compiler should replace the EX not
- >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
- >simulated the effects directly (doing a variable-length move) or calling the
- >run-time simulator (for the unusual case where the instruction has actually been
- >modified).
- >
- >It may be that self-modifying code is actually a problem for compilers of /370
- >machine language, but the existence and frequent use of EX is not sufficient
- >evidence.
-
- EX and Self-modifying code is NOT just a problem for S/370 compilers;
- They were the ONLY sane way to perform variable-length operations on
- the S/360-S/370 line. Any variable length mover, comparer, etc
- (Move x to y for n items) suffered from one of these problems.
-
- EX was particularly nasty even in S/370 days, because you could write
- a long move/compare routine using EX or SMF(Self-Mod- Code) which ran
- TWICE as fast as the same routine using MVCL, CLCL. Plus, the
- hand-coded routine would let you do overlapped moves or compares,
- which were verboten in the xxxL familar of instructions.
-
- Bob
-
- Robert Bernecky rbe@yrloc.ipsa.reuter.com bernecky@itrchq.itrc.on.ca
- Snake Island Research Inc (416) 368-6944 FAX: (416) 360-4694
- 18 Fifth Street, Ward's Island
- Toronto, Ontario M5J 2B9
- Canada
-