Article View: comp.os.msdos.programmer
Article #2953TC++ string data
From: Steve Hutzley
Date: Tue, 06 Nov 1990 16:22
Date: Tue, 06 Nov 1990 16:22
33 lines
2052 bytes
2052 bytes
>Article 1718
>From: Duel@cup.portal.com (Omid M Farr)
>Newsgroups: comp.os.msdos.programmer
>Subject: using extended memory for arrays [??]
>Date: 3 Nov 90 23:29:39 GMT
>Organization: The Portal System (TM)
>I'm using Borland's TC++ and would like to know how I can get the compiler
>to use extended memory for strings, variables, and arrays. (No executeable
>code). As it is, if I allocate a one or two meg array, it will compile and
>end up as a 1-2 meg file which obviously wont fit into the 640k base memory.
>Can someone give me an example or tell me how I can load in a 1-2 meg file
>which holds all the array data and then have the program actually access this
>memory.
>Since this program continually manipulates data, it is not efficient to
>continously load strings from the hard drive. I could use a ramdrive, but
>there must be an quicker and less "clumsy" method.
>Thanks.. any examples or information on how (if possible) this can be done.
[[ I appoogize for the full quote, but I felt it was needed here]]
TC++ does support overlays, and that may work, but it will more
that likely cause ALOT of disk activity. Another route would be to get
hold of some expanded/extended memory routines. I have seen shareware
as well as "consumer" type libraries that will manipulate exp/ext mem.
If you don't mind playing with DOS functions, the INT21 functions up in
the 0x60 range do memory functions (if memory serves me correctly, I
don't have exp/ext mem. so I have never played with them)
Any one else?
Steve
Technical Details
Message-ID:
<3382@ryn.esg.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!bacchus.pa.dec.com!rust.zso.dec.com!shlump.nac.dec.com!ryn.esg.dec.com!bigq.dec.com!hutzleyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!bacchus.pa.dec.com!rust.zso.dec.com!shlump.nac.dec.com!ryn.esg.dec.com!bigq.dec.com!hutzley From: hutzley@bigq.dec.com (Steve Hutzley) Newsgroups: comp.os.msdos.programmer Subject: TC++ string data Message-ID: <3382@ryn.esg.dec.com> Date: 6 Nov 90 16:22:42 GMT Sender: guest@ryn.esg.dec.com Organization: Digital Equipment Corporation Lines: 33