Article View: comp.os.msdos.programmer
Article #352Re: Problems with DGROUP exceeds 64K in TC++
From: Nigel Roles
Date: Mon, 10 Aug 1992 10:33
Date: Mon, 10 Aug 1992 10:33
27 lines
1496 bytes
1496 bytes
In article <BsIxGw.E4p@news.cso.uiuc.edu> ygg6647@uxa.cso.uiuc.edu (Youren Guo) writes: > Hello, everyone, > > I'm having problems with the DGROUP exceeds 64K when compiling a C program using > TC++ 1.01. The program uses some big arrays (a little more than 64K). When > I use the large model it still gives me the same error message when linking. > These big arrays are used by two functions I just added. Previously I simply > used the small model. After I cut the array size to half, it compiles and links > Ok (even with small model), but when running it gives Abnormal program > termination. I didn't use any floating point stuff. Just simple text processing. > > Someone please let me know what I did wrong here. I appreciate your help! > Thank you! > --Youren Guo 1. You can't use more than about 63K since the runtime environment needs some memory as well. 2. Declare the arrays far i.e. char far bigbuf[32000]; This places them in FARDATA i.e. not in DGROUP and Bob's your Uncle. 3. As regards APT, don't know.
Technical Details
Message-ID:
<713468030snx@cotswold.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!cotswold.demon.co.uk!nigelReferences:
<BsIxGw.E4p@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer From: nigel@cotswold.demon.co.uk (Nigel Roles) Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!cotswold.demon.co.uk!nigel Subject: Re: Problems with DGROUP exceeds 64K in TC++ Distribution: world References: <BsIxGw.E4p@news.cso.uiuc.edu> Organization: Interconnect Lines: 27 Date: Mon, 10 Aug 1992 10:33:50 +0000 Message-ID: <713468030snx@cotswold.demon.co.uk> Sender: usenet@gate.demon.co.uk