Path: 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 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).