home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10415 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.2 KB

  1. Xref: sparky comp.os.msdos.programmer:10415 comp.lang.c++:15933 comp.lang.c:16170
  2. Newsgroups: comp.os.msdos.programmer,comp.lang.c++,comp.lang.c
  3. Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux3!sl14
  4. From: sl14@crux3.cit.cornell.edu (Stephen Lee)
  5. Subject: 'new'ing >64K Objects in BC++
  6. Message-ID: <1992Nov8.181852.21103@piccolo.cit.cornell.edu>
  7. Sender: news@piccolo.cit.cornell.edu (USENET News System)
  8. Nntp-Posting-Host: crux3.cit.cornell.edu
  9. Organization: Fantasy Zone Ithaca, Inc.
  10. Date: Sun, 8 Nov 92 18:18:52 GMT
  11. Lines: 17
  12.  
  13. Is there an equivalent of farmalloc() in BC++ for 'new'?  It seems
  14. that the BC++ uses size_t to calculate the size of the memory chunk
  15. it's getting with 'new', thus limiting it to 64K-1 in size.  (size_t,
  16. I believe, is unsigned int in BC++)
  17.  
  18. Given the fact that BC++ uses a signed int for an array index, and
  19. you'll find maintaining a large array is difficult.  Perhaps I should
  20. switch to djgpp :(
  21.  
  22. Stephen
  23.  
  24. P.S.  What's the difference between djgpp and g++ other than that
  25. they're maintained by different people?  The g++ source have files
  26. like something.com in it so is it possible to compile g++ under DOS?
  27. --
  28. Stephen Lee
  29. Internet: sl14@crux2.cit.cornell.edu
  30.