Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!vrdxhq!verdix!qtc!ed From: ed@qtc.UUCP (Ed Lisle) Newsgroups: comp.sys.ibm.pc Subject: MSC question (sbrk/realloc) Message-ID: <277@qtc.UUCP> Date: Thu, 16-Apr-87 13:23:24 EST Article-I.D.: qtc.277 Posted: Thu Apr 16 13:23:24 1987 Date-Received: Sun, 19-Apr-87 17:58:44 EST Organization: Quantitative Technology Corp., Beaverton, OR Lines: 17 I am porting a large program to the pc using the huge-memory model. This program references sbrk(), which is not supported with large/huge models. I could use realloc(), expect the code depends on the physical addressing and realloc() may relocate the starting address somewhere else. Micrsoft Support told me to write my own sbrk() function using the BIOS memory management call to extend/decrease allocated memory and keep track myself how memory is utilized. Has someone already done this for large/huge memory models ? +------------------------------------------------------------+ | Ed Lisle | ogcvax! | | Quantitative Technology Corporation | verdix! qtc!ed | | Beaverton, OR (503) 626-3081 | sequent! | +------------------------------------------------------------+