home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20012 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  46 lines

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