Article View: comp.os.msdos.programmer
Article #4880Re: huge-far pointer and Turbo C++ V1
From: Doug Stevens
Date: Mon, 25 Feb 1991 20:32
Date: Mon, 25 Feb 1991 20:32
8 lines
1011 bytes
1011 bytes
In article <91052.082658ISSHST@BYUVM.BITNET>, ISSHST@BYUVM.BITNET writes: > My understanding of TC++ is that a single data structure cannot be larger > than 64K. This is not true; farmalloc() takes as an size argument an unsigned long, allowing blocks larger than 64K to be malloc'd. If you then use huge pointer arithmetic on the pointer returned, everthing will be OK (but a little slower than accesses to a regular -- less than 64K -- block).
Technical Details
Message-ID:
<6313@videovax.tv.tek.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uwm.edu!ogicse!zephyr.ens.tek.com!videovax!dougsReferences:
<8138@exodus.Eng.Sun.COM> <91052.082658ISSHST@BYUVM.BITNET>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uwm.edu!ogicse!zephyr.ens.tek.com!videovax!dougs From: dougs@videovax.tv.tek.com (Doug Stevens) Newsgroups: comp.os.msdos.programmer Subject: Re: huge-far pointer and Turbo C++ V1 Summary: Use farmalloc() Message-ID: <6313@videovax.tv.tek.com> Date: 25 Feb 91 20:32:29 GMT References: <8138@exodus.Eng.Sun.COM> <91052.082658ISSHST@BYUVM.BITNET> Organization: Tektronix TV Measurement Systems, Beaverton OR Lines: 8