home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / advocacy / 31973 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.0 KB

  1. Xref: sparky comp.sys.amiga.advocacy:31973 comp.sys.amiga.misc:18969
  2. Newsgroups: comp.sys.amiga.advocacy,comp.sys.amiga.misc
  3. Path: sparky!uunet!paladin.american.edu!gatech!destroyer!sol.ctr.columbia.edu!phoenix!jerry
  4. From: jerry@msi.com (Jerry Shekhel)
  5. Subject: Re: Don't let the Amiga Die (Part II)!!!
  6. Followup-To: comp.sys.amiga.advocacy,comp.sys.amiga.misc
  7. References: <1992Dec22.121913.4101@mpifr-bonn.mpg.de>
  8. Sender: nobody@ctr.columbia.edu
  9. Organization: Molecular Simulations, Inc.
  10. Date: Tue, 22 Dec 1992 16:58:48 GMT
  11. X-Newsreader: TIN [version 1.1 PL8]
  12. Message-ID: <1992Dec22.165848.21673@sol.ctr.columbia.edu>
  13. X-Posted-From: phoenix.msi.com
  14. NNTP-Posting-Host: sol.ctr.columbia.edu
  15. Lines: 47
  16.  
  17. Michael van Elst (mlelstv@specklec.mpifr-bonn.mpg.de) wrote:
  18. : >:
  19. : >Incorrect, as far as I know.  There are four modes of operation, Real Mode,
  20. : >16-bit Protected Mode, 32-bit Protected Mode, and Virtual86 Mode.  Real Mode
  21. : >has nothing to do with word size or register access; a program running in
  22. : >Real Mode is free to use the full 32-bit registers and data bus.  Lots of
  23. : >current programs take advantage of 32-bit CPUs even though they run in Real
  24. : >Mode.
  25. :
  26. : In my experience there's hardly _any_ software running in real-mode that
  27. : uses '32bit' instructions because this software works even on lowly XTs
  28. : or at least ATs. The major use of '32bit' instructions is to access memory
  29. : above 1Meg. There's also a penalty in using '32bit' instructions in real mode
  30. : (or 16bit instructions in 32bit mode, etc...).
  31. :
  32.  
  33. In Real Mode, 32-bit instructions are slightly longer than in 32-bit Protected
  34. Mode, because they require address size and/or operand size override bytes.
  35. However, the performance gain of using 32-bit registers and memory access
  36. easily outweighs this.  So there really is no penalty.  Also, I think you'd
  37. be surprised at how much software uses 32-bit code in Real Mode.  PkZip,
  38. for example, works on all PC's, but has special 32-bit speedups for 386 and
  39. up.  Also, many new games require 386 machines even though they run in Real
  40. Mode.
  41.  
  42. :
  43. : >How can you say that all Real Mode (DOS) software is unomptimized?
  44. : >Word alignment has been a compiler option from the very beginning!
  45. :
  46. : However, this option wasn't largely used because you have to anticipate
  47. : 32bit memory (few people did) when you write the programs and your program
  48. : often gets larger.
  49. :
  50.  
  51. Actually, "word alignment" in DOS compilers means that structure members start
  52. at 16-bit boundaries, not 32-bit ones.  In any case, it doesn't really matter,
  53. because the option only affects performance on the old 8086/88.
  54.  
  55. :
  56. : Michael van Elst
  57. :
  58. --
  59. +-------------------+----------------------------+---------------------------+
  60. | JERRY J. SHEKHEL  | Molecular Simulations Inc. | Time just fades the pages |
  61. | Drummers do it... |     Burlington, MA USA     | in my book of memories.   |
  62. |    ... In rhythm! |        jerry@msi.com       |         -- Guns N' Roses  |
  63. +-------------------+----------------------------+---------------------------+
  64.