Article View: comp.os.msdos.programmer
Article #4804Re: huge-far pointer and Turbo C++ V1
From: Roy M. Silvernail
Date: Tue, 19 Feb 1991 05:17
Date: Tue, 19 Feb 1991 05:17
17 lines
1239 bytes
1239 bytes
stephenj@deblil.Eng.Sun.COM (Stephen Johnson) writes:
> This program allocates a very large array of memory
> and addresses using the "far" key word. Unfortunately, the
> address calculations rap around at 64k. Does anyone know why
> this happens? Is this a bug in the Turbo C++ libraries?
As far as I'm aware, the problem is with the 'far ' keyword. Actually,
it's not a problem at all, as far calls are advertised to wrap at 64k
boundries.
I think you want the 'huge' keyword there.
--
Roy M. Silvernail -- roy%cybrspc@cs.umn.edu - OR- cybrspc!roy@cs.umn.edu
Department of redundancy department, or "Take the long way home...":
main(){system("perl -e '$x = 1/50; print \"Still just my \\$$x!\n\"'");}
[new year, new .sig, same ol' cyberspace]
Technical Details
Message-ID:
<8JoLX1w163w@cybrspc>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!msi.umn.edu!cs.umn.edu!cybrspc!royReferences:
<8138@exodus.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!msi.umn.edu!cs.umn.edu!cybrspc!roy From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail) Newsgroups: comp.os.msdos.programmer Subject: Re: huge-far pointer and Turbo C++ V1 Keywords: huge-far Message-ID: <8JoLX1w163w@cybrspc> Date: 19 Feb 91 05:17:42 GMT References: <8138@exodus.Eng.Sun.COM> Organization: Villa CyberSpace, Minneapolis, MN Lines: 17