home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!hri.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!umn.edu!epx.cis.umn.edu!wright
- From: wright@epx.cis.umn.edu (Mark Wright)
- Newsgroups: comp.lang.c
- Subject: Re: Memory
- Keywords: Borland C
- Message-ID: <1992Sep13.165452.27683@news2.cis.umn.edu>
- Date: 13 Sep 92 16:54:52 GMT
- References: <BuHH37.3BC@news.cso.uiuc.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Organization: University of Minnesota
- Lines: 49
- Nntp-Posting-Host: epx.cis.umn.edu
-
- In article <BuHH37.3BC@news.cso.uiuc.edu> you write:
- >
- > I have a rather simple question, I hope. I have the borland c++ compiler
- > ( version 3.0) along with a gateway2000, which has 8meg. I need to
- > create a rather large data space +600K and I am unable to do it.
- > The old dos 640k problem I suppose... If this is a faq I am sorry but
- > I am just getting rather upset at this problem.....
- > Any help would be appreciated...
- >
- > Thank you in advance,
- >
- > _paul
- >--
- >-----------------------------------------------------------------------
- >| Log.... Log.... Log.... It is better than bad its Good.... Log! |
- >| pAul rAdjA pradja@adsl.ece.uiuc.edu |
- >-----------------------------------------------------------------------
-
- Well, the answer to this is simple - you can't do it! :-)
- Actually, there are a couple of solutions:
- 1) do you need the data structure in memory at all times - maybe you could
- write some routines to cache the data structure in and out from disk.
- Of course this may result in a DRASTIC reduction in performance.
- 2) To get around DOS's 1024k memory limit (which is really a 640k limit, since
- the upper 384K is committed to BIOS and screen information and stuff), you
- can buy a dos extender. Phar Lap's 286 dos extender is around $500. Yep,
- pretty steep.
- 3) You can chuck your Borland compiler and use the public domain DJGPP compiler
- which can be found at garbo.uwasa.fi It has a built in DOS extender, and
- is really an excellent product. One problem with it is that the dos extender
- is not DMPI complient and your programs will therefore not run under Windows.
- Also, the fact that it is PD may create some hassles for you if you are
- writing programs you want to sell - you can write to DJ about that, his (?)
- address is included in the README file that comes with djgpp. Plus, it
- is really not all that easy to use. It's a port of gnu's unix c compiler,
- and has alot of quirks that don't make much sense is the DOS world (for
- example it insists on using '/' as the directory seperator. I sure hope
- the reason for this was for ease of porting, and not some bone-headed
- reason like 'unix is better')
- 4) I'm not a windows programmer, but I think that you can create >640k
- data structures in your windows programs. Sort of the opposite problem of
- 3 - you will only be able to run your programs under windows, which may
- involve some extensive re-writing of your I/O routines, etc... But, this
- is supported by your current compiler.
-
- Good Luck
- --
- Mark Wright
- wright@epx.cis.umn.edu
-