Article View: comp.os.ms-windows.programmer.misc
Article #2571Re: Should I use large memory model anyway?
From: Chris Marriott
Date: Thu, 07 Jan 1993 19:18
Date: Thu, 07 Jan 1993 19:18
50 lines
2729 bytes
2729 bytes
In article <1993Jan6.193801.27741@neptune.inf.ethz.ch> skimmel@iiic.ethz.ch writes: >I have a question about the large memory model. > >MS and others (Petzold) warn to use the large memory model. On the other >hand I read that using the large memory model will make your >code more easily portable to Windows NT. > >What I heard so far about the disadvantages of the large memory model >is not enough to stop me to try it. > >We do not need multiple instances of our application and do not >have to support Windows 3.0. (not even Standard Modus) > >But on the other hand we want at least part of our application (the >non-GUI part) to be easily portable to other platforms, and the >whole application to be easily portable to Windows NT. > >Have I missed certain important considerations about the large memory >model? Do you know of any literature that is more encouraging about >using the large memory model and explains more about it? > >Thank you > Stefan > > >Stefan Kimmel | skimmel@inf.ethz.ch >Siemens-Albis I/49 | S=kimmel;OU1=eates;P=siemenszh;A=arcom;C=ch >Albisriederstr. 245 >CH 8047 Zuerich Switzerland | Tel: +41 1 495 49 35 > > If you're using either Microsoft C++ v7 or Borland C++ v3.1 there's no reason at all why you shouldn't use large model any more. The reason the warnings were originally given related to Real Mode Windows, and the fact that the older C compilers generated FAR data segments in Large model, which made the application single instance. Use one of the modern compilers and you'll be quite safe. Your app will still run multiple instance, and you'll be able to allocate memory using the standard C "malloc" routine. -- -------------------------------------------------------------------------- | Chris Marriott | chris@chrism.demon.co.uk | | Warrington, UK | BIX: cmarriott | | (Still awaiting inspiration | CIX: cmarriott | | for a witty .sig .... ) | CompuServe: 100113,1140 | --------------------------------------------------------------------------
Technical Details
Message-ID:
<726434289snz@chrism.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chrisReferences:
<1993Jan6.193801.27741@neptune.inf.ethz.ch>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc From: chris@chrism.demon.co.uk (Chris Marriott) Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris Subject: Re: Should I use large memory model anyway? Distribution: world References: <1993Jan6.193801.27741@neptune.inf.ethz.ch> Organization: None Reply-To: chris@chrism.demon.co.uk X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19) Lines: 50 Date: Thu, 7 Jan 1993 19:18:09 +0000 Message-ID: <726434289snz@chrism.demon.co.uk> Sender: usenet@demon.co.uk