Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!sdcsvax!ucsdhub!jack!man!crash!jkimble From: jkimble@crash.CTS.COM (Jim Kimble) Newsgroups: comp.lang.c,comp.unix.xenix Subject: Re: SCO cc(1)/ld(1) options, heap space Message-ID: <1837@crash.CTS.COM> Date: Thu, 8-Oct-87 22:22:00 EDT Article-I.D.: crash.1837 Posted: Thu Oct 8 22:22:00 1987 Date-Received: Sun, 11-Oct-87 13:52:05 EDT References: <461@petro.UUCP> Reply-To: jkimble@crash.CTS.COM (Jim Kimble) Distribution: na Organization: Crash TS, San Diego, CA Lines: 26 Summary: XENIX compiler error: OUT OF HEAP SPACE Xref: mnetor comp.lang.c:4788 comp.unix.xenix:931 I...n article <461@petro.UUCP> jrb@petro.UUCP (Jon Boede) writes: >a number of printf(3) statements with numerous arguments. The compiler >doesn't like these at all, claiming that it's out of heap space. > >I assume there's an option to cc(1) to increase the amount of heap space. Of >course, I could always break up the printf but I'd rather not as it works >quite nicely on other hardware. I am using the middle memory model (-Mm) if >that's of any import. > >Better than just a fix to this would be a list of the options to SCO's cc(1) >and ld(1) (I've had a couple of problems with ld(1) as well) with their default I just had a similiar problem with about three million DEFINE statements from rewriting field-edit. The problem is that you need to specify -LARGE module. That should give you more heap space. The manual says something to the effect that the system is running out of dynamic memory. If things get real bad, you can specify "huge" module with the flag -Mh. Hope this helps --Jim Kimble Western Pacific Data Systems San Diego, CA "Everywhere is walking distance if you have the time."