home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / msdos / programm / 2721 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  3.8 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!swrinde!news.dell.com!natinst.com!cs.utexas.edu!asuvax!ukma!psuvax1!uxa.ecn.bgu.edu!garrot.DMI.USherb.CA!newsflash.concordia.ca!clyde.concordia.ca!altitude!Nyongwa.CAM.ORG!illusion!UUCP.Gateway
  2. From: Mark.Kraml@f250.n514.z17.fidonet.ftn (Mark Kraml)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: QEMM/386
  5. Message-ID: <721548484.F00002@illusion.tpg.org>
  6. Date: 12 Nov 92 02:45:28 GMT
  7. Sender: UUCP.Gateway@illusion.tpg.org
  8. Lines: 86
  9.  
  10. Hello Jeff!
  11.  
  12. Monday November 09 1992, Jeff Silverman writes to All:
  13.  
  14.  JS> From: silverm@bcstec.ca.boeing.com (Jeff Silverman)
  15.  JS> Newsgroups: alt.msdos.programmer
  16.  JS> Subject: QEMM/386
  17.  JS> Organization: Boeing Computer Services, Seattle
  18.  JS> @Message-ID: <4141@bcstec.ca.boeing.com>
  19.  JS> Date: 9 Nov 92 05:44:05 GMT
  20.  
  21.  
  22.  JS> I am a VAX/VMS guru in the process of becoming an MS-DOS guru.  If these
  23.  JS> questions sound naive, it is because I am coming at these from a strange
  24.  JS> perspective.
  25.  
  26. i hope they pay you plenty. :)
  27.  
  28.  JS> In the VAX/VMS operating system, programs execute in their own virtual
  29.  JS> address space, which gets mapped on a page by page basis into physical
  30.  JS> memory.  2 VMS programs can be running at the same virtual address yet
  31.  JS> address different pages of physical memory, because the mapping is done
  32. on
  33.  JS> a per-process basis and the OS handles all that transparently.  The
  34.  JS> programmer sees 1, big pool of RAM.
  35.  
  36. nice. one day bill gates will hear about this.
  37.  
  38.  JS> What does QEMM/386 do, from a programmers point of view?  It appears to
  39.  JS> move things around in both physical and virtual memory.  How is this
  40.  JS> possible? If something, say, a TSR, is moved out of low memory and into
  41.  JS> either High Memory (By high memory, I mean the region between 640K and 1
  42.  JS> Mbyte) or extended memory, how does it keep working?
  43.  
  44. the program is loaded at the high address. all the power of the 386 VM and
  45. memory page mapping hardware, that has been around for years now,is still used
  46. to ..... wait..... put a piece of ram up high so a program can load into it.
  47.  
  48.  JS>   All of the
  49.  JS> destinations for jump instructions would change.  Or does the 80386 have
  50.  JS> additional memory relocation? How does QuarterDeck's OPTIMIZE program
  51.  JS> work?
  52.  
  53. i only calculates the sizes of the TSR that load and them tries to fit them
  54. into the holes above 640k. what does not fit get loaded low. you must reboot
  55. the computer to install all these TSR at their new high addresses.
  56.  
  57.  JS>  Please don't say it works well, I KNOW it works well, I've been
  58.  JS> playing with it, I can see that it works, but don't know what it's doing
  59.  JS> or how it does it.
  60.  
  61. it works good. <big brin>
  62.  
  63.  JS>   Well, I do know what its doing, it's modifying
  64.  JS> CONFIG.SYS to free up more RAM in the lower 640K region.
  65.  
  66. thats the picture.
  67.  
  68.  JS>  Why does DOS have
  69.  JS> a 640Kbyte limit?
  70.  
  71. because dos is compatible down to the 8088 processor. and with so many systems
  72. out there the programs are all getting written for these machines. now with
  73. windows NT and OS/2 comming around the bend more and more programs will get
  74. written for the larger address space models.
  75.  
  76.  JS>  Why would anybody ever want to use expanded RAM if
  77.  JS> extended RAM is available?
  78.  
  79. because the 8088 based systems can only use expanded ram.
  80.  
  81.  JS>  If I have a "C" program which runs properly
  82.  JS> under VMS, but needs, say, 3 Mbytes of RAM to store all its data
  83.  JS> structures, what is the best way to run it under DOS?  Under Windows?
  84.  
  85. under VMS.
  86.  
  87. just kidding. if you run on a 386 or the like you can compile your program
  88. with 1 of many DOS extenders. Phar-Lap is such a product. they will permit you
  89. to run a 32bit application with lots of ram and still be compatible with DOS.
  90.  
  91. running under windows is also good. if DOS support is important then i can
  92. recommend OS/2. it will run DOS programs. and will let you run large 32 bit
  93. programs.
  94.  
  95. Mark
  96.