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