Date: Tue, 4 Feb 92 00:42:54 HST From: ressler AT galileo DOT IFA DOT Hawaii DOT Edu (Mike "IR" Ressler) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Function similar to Turbo C's coreleft()??? Status: O This is probably a foolish question but ... Is there a __simple__ way of figuring out how much physical RAM is available to a program, something like coreleft() and farcoreleft() in Turbo C? For instance, something that would let me write if( coreleft() < 4 MB ) { do this; } else do that; I know that debug32 can figure this out, but I assume that it uses Turbo C functions to examine base memory, xms memory, etc. whereas I wish to do it from gcc directly. Any tips are greatly appreciated ... Mike Ressler ressler AT galileo DOT ifa DOT hawaii DOT edu