Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!snorkelwacker.mit.edu!shelby!msi.umn.edu!cs.umn.edu!uc!shamash!jeff From: jeff@u02.svl.cdc.com (Jeff Needham) Newsgroups: comp.os.msdos.programmer Subject: farmolloc and malloc Message-ID: <30456@shamash.cdc.com> Date: 8 Feb 91 23:14:58 GMT Sender: usenet@shamash.cdc.com Lines: 25 This is posted on behalf of someone without Net access I will forward all responses jeff I am using Turbo C++ on a PC clone with 1MB of RAM. Actually, I'm not using any of the OOP stuff; just writing vanilla C programs. No matter what I try, or how small my program is, I find that "malloc" and "farmalloc" allocate space in the same segment, which starts out at about 62000 bytes long. At the very least, I wish they could use two different segments of that size. At best, I wish "farmalloc" could allocate different segments until available RAM is exhausted. My test program uses "coreleft" and "farcoreleft". They seem to give the right answers, agreeing with the point at which "malloc" or "farmalloc" returns a NULL pointer. What am I doing wrong, or neglecting to do ? -- Waiting for the Oracle port to the Oberheim OB-Xa | Jeffrey Needham | Yet Another Oracle Performance Group | Control Data - Santa Clara, CA - INTERNET jeff@hawk.svl.cdc.com