home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5335 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sunic!isgate!krafla!karlth
  2. From: karlth@rhi.hi.is (Karl Thoroddsen)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Memory management from Unix to Windows
  5. Message-ID: <6006@krafla.rhi.hi.is>
  6. Date: 25 Jan 93 09:41:51 GMT
  7. References: <1993Jan23.042005.15653@netcom.com>
  8. Sender: usenet@rhi.hi.is
  9. Lines: 37
  10. Nntp-Posting-Host: hengill.rhi.hi.is
  11.  
  12. In <1993Jan23.042005.15653@netcom.com> yikes@netcom.com (Michael Brill) writes:
  13.  
  14. <Porting from the NeXT to Windows or the Mac>
  15.  
  16. >As far as the UI goes, I'm not going to worry about now.  What I
  17. >am worried about is memory management.  I've scanned through the
  18. >Windows docs and understand how memory management works there
  19. >(getting handle, locking, operating, unlocking) and I'm looking
  20. >for an established scheme to make the port seamless between Unix
  21. >and Windows/Mac.
  22.  
  23. There a few things you should consider regarding Window's memory management:
  24.  
  25. 1.    Target Standard and Enhanced mode.  Windows 3.0 Real mode is dead.
  26. 2.    Static data and the stack are confined to the same 64k segment (If you
  27.     wish to run multiple instances of your app)
  28. 3.    The use of 64k+ data objects is a bit troublesome.
  29. 4.    Global memory handles are limited, use subsegment allocation.  
  30.     Subsegment allocation is supported by Borland's and Microsoft's 
  31.     compilers, a source can also be obtained in Paul Yao's 'Power 
  32.     Programming For Windows'.
  33.  
  34. Buy a good Windows memory management book:
  35.     'DLL's and Memory Management'
  36.  
  37.  
  38. >Does targeting Win32 make life any easier for me?
  39.  
  40. Easier porting yes, easier marketing no (not today at least).
  41.  
  42. >Thanks, ...Michael Brill (yikes@netcom.com)
  43.  
  44. Karl
  45. -- 
  46.  
  47. \ Internet: karlth@rhi.hi.is             \ Karl Thoroddsen University Of Iceland
  48.  \ Respect...            , Peter Ustinov  \ Department Of Computer Science
  49.