home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!news.univie.ac.at!iiasa.ac.at!schoepp
- From: schoepp@iiasa.ac.at (Wolfgang SCHOEPP)
- Subject: Re: Borland TC++ 3.0 and Pharlap Dos Extdrs'
- Message-ID: <1993Jan21.103544.26536@iiasa.ac.at>
- Organization: IIASA, Laxenburg, Austria
- X-Newsreader: TIN [version 1.1 PL6]
- References: <10JAN199314535461@zeus.tamu.edu>
- Date: Thu, 21 Jan 1993 10:35:44 GMT
- Lines: 34
-
- Zeke E. Pez (olw7845@zeus.tamu.edu) wrote:
- : Does the combination of Turbo C and Pharlap Dos Extdrs when combined
- : allow me to use a pointer that points to a allocated chunk of memory
- : that is 2megs or larger?
- :
-
- I has been able to do so in Borland c++ 2.xx. I used farmalloc. See
- also the Phar Lap man. "Huge Allocations".
-
- : If so, do I need to use "huge" pointers to break the 64k barrier limit
- : of ANSI C?
- :
- It is simpler if you use huge keyword. But you must use the -h flag to make
- sure that the pointer calculation makes no error with the selector. Therefor
- any item in a huge array, or any operation can just use a length which
- breaks with power of 2. (See Phar Lap ma. as well). It is also
- possible to make your own pointer calculation then the huge keyword is not
- needed.
- P.S. the 64K barrier is a DOS and not a ANSI C one.
-
-
- : If the answer to the first question is yes, Is there alot of B.S. Handwaving
- : discreet details in acheiving this pointer allocation?
- :
- : Thanks,
- : Zeke
- :
-
- I hope this is helpful
-
- Wolfgang Schoepp
- Inter. Inst. for
- Applied Systems Analysis
- AUSTRIA, Laxenburg
-