Article View: comp.os.msdos.programmer
Article #3522'new'ing >64K Objects in BC++
From: Stephen Lee
Date: Sun, 08 Nov 1992 18:18
Date: Sun, 08 Nov 1992 18:18
17 lines
1162 bytes
1162 bytes
Is there an equivalent of farmalloc() in BC++ for 'new'? It seems that the BC++ uses size_t to calculate the size of the memory chunk it's getting with 'new', thus limiting it to 64K-1 in size. (size_t, I believe, is unsigned int in BC++) Given the fact that BC++ uses a signed int for an array index, and you'll find maintaining a large array is difficult. Perhaps I should switch to djgpp :( Stephen P.S. What's the difference between djgpp and g++ other than that they're maintained by different people? The g++ source have files like something.com in it so is it possible to compile g++ under DOS? -- Stephen Lee Internet: sl14@crux2.cit.cornell.edu
Technical Details
Message-ID:
<1992Nov8.181852.21103@piccolo.cit.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux3!sl14Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.lang.c++,comp.lang.c Path: arc1-ca.pugleaf.net!sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux3!sl14 From: sl14@crux3.cit.cornell.edu (Stephen Lee) Subject: 'new'ing >64K Objects in BC++ Message-ID: <1992Nov8.181852.21103@piccolo.cit.cornell.edu> Sender: news@piccolo.cit.cornell.edu (USENET News System) Nntp-Posting-Host: crux3.cit.cornell.edu Organization: Fantasy Zone Ithaca, Inc. Date: Sun, 8 Nov 92 18:18:52 GMT Lines: 17