Path: 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 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]