home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9068 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.8 KB

  1. Path: sparky!uunet!usc!wupost!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!ralf
  2. From: ralf+@cs.cmu.edu (Ralf Brown)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: XMS memory manager for C/C++ needed
  5. Message-ID: <Bu3465.33I.2@cs.cmu.edu>
  6. Date: 5 Sep 92 02:56:28 GMT
  7. Article-I.D.: cs.Bu3465.33I.2
  8. References: <1992Sep03.051903.110369@zeus.calpoly.edu> <1992Sep4.065429.25559@zooid.guild.org>
  9. Sender: news@cs.cmu.edu (Usenet News System)
  10. Organization: School of Computer Science, Carnegie Mellon
  11. Lines: 25
  12. Nntp-Posting-Host: b.gp.cs.cmu.edu
  13.  
  14. In article <1992Sep4.065429.25559@zooid.guild.org> ross@zooid.guild.org (Ross Ridge) writes:
  15. }cambler@zeus.calpoly.edu (Christopher J. Ambler, Phish) writes:
  16. }>I'm looking for an XMS memory manager package that can make XMS available
  17. }>to the heap via malloc() or new calls transparently. Protected mode
  18. }>interfaces do not qualify for my application.
  19. }
  20. }Protected mode interfaces are really your only choice to do this
  21. }transparently.
  22.  
  23. You can do it at least semi-transparently in C++; there's a virtual array
  24. class on SIMTEL20, though I forget the name.
  25.  
  26. }The problem is that XMS memory isn't in the 8086's addressing space,
  27. }so you can't access it directly in real mode, only through handles and 
  28. }XMS service requests.  It is in theory possible to write a compiler
  29. }that could hide all this for you, and I believe MAC compilers do
  30.  
  31. It's already been done for EMS with a special pointer type (Zortech C and
  32. I believe MS C 7.0), and shouldn't be much more complex for XMS.
  33.  
  34. -- 
  35. Internet: RALF+@CS.CMU.EDU   |The University would disclaim this if it knew...
  36. FIDO: Ralf Brown 1:129/26.1  |
  37. BIT: RALF%CS.CMU.EDU@CARNEGIE|"Success has a simple formula: do your best,
  38. AT&Tnet: (412)268-3053 school| and people may like it."   -- Sam Ewing
  39.