Article View: comp.os.ms-windows.programmer.misc
Article #2311Re: Memory management from Unix to Windows
From: Karl Thoroddsen
Date: Mon, 25 Jan 1993 09:41
Date: Mon, 25 Jan 1993 09:41
37 lines
1848 bytes
1848 bytes
In <1993Jan23.042005.15653@netcom.com> yikes@netcom.com (Michael Brill) writes: <Porting from the NeXT to Windows or the Mac> >As far as the UI goes, I'm not going to worry about now. What I >am worried about is memory management. I've scanned through the >Windows docs and understand how memory management works there >(getting handle, locking, operating, unlocking) and I'm looking >for an established scheme to make the port seamless between Unix >and Windows/Mac. There a few things you should consider regarding Window's memory management: 1. Target Standard and Enhanced mode. Windows 3.0 Real mode is dead. 2. Static data and the stack are confined to the same 64k segment (If you wish to run multiple instances of your app) 3. The use of 64k+ data objects is a bit troublesome. 4. Global memory handles are limited, use subsegment allocation. Subsegment allocation is supported by Borland's and Microsoft's compilers, a source can also be obtained in Paul Yao's 'Power Programming For Windows'. Buy a good Windows memory management book: 'DLL's and Memory Management' >Does targeting Win32 make life any easier for me? Easier porting yes, easier marketing no (not today at least). >Thanks, ...Michael Brill (yikes@netcom.com) Karl -- \ Internet: karlth@rhi.hi.is \ Karl Thoroddsen University Of Iceland \ Respect... , Peter Ustinov \ Department Of Computer Science
Technical Details
Message-ID:
<6006@krafla.rhi.hi.is>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!isgate!krafla!karlthReferences:
<1993Jan23.042005.15653@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!isgate!krafla!karlth From: karlth@rhi.hi.is (Karl Thoroddsen) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Re: Memory management from Unix to Windows Message-ID: <6006@krafla.rhi.hi.is> Date: 25 Jan 93 09:41:51 GMT References: <1993Jan23.042005.15653@netcom.com> Sender: usenet@rhi.hi.is Lines: 37 Nntp-Posting-Host: hengill.rhi.hi.is