Date: Sun, 1 May 94 00:53:12 JST From: Stephen Turnbull To: Piet DOT Mertens AT arts DOT kuleuven DOT ac DOT be Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: ld and GCC-RM GCC-RM is just a real-mode version of GCC. This is not likely to help with memory problems, as GCC will take up ~130KB due to the GO32 stub, but as far as I know GCC-RM does not swap itself out. (At least the difference was not enough to fix *my* make+GCC+compiler runs out of memory woes.) It is available as GCC257RM.ZIP (or something very like that) at all the usual places if you want to try it anyway. The problem you're running into seems very unlikely to be that kind of problem, however. Out of memory usually seems to give either a "GO32 can't find room to load" message, or a system crash (the latter happens when you have exactly the right amount of space left, and is quite rare in my experience). What seems to be happening is that your command line is getting truncated somehow. This is presumably due to some problem in passing long arguments between GCC and the loader. Why this should happen I'm not sure; I know that I've had problems although everybody tells me I shouldn't. I think it may be that although *GCC* knows how to pass those args to DJGPP compiler suite programs, *Make* doesn't. (A possible cause of this is if the makefile is written so that Make uses the shell to call gcc rather than system("gcc arguments"), which knows how to pass long arguments.) A possible solution is to get Morten Welinder's GMake 3.70, available at Garbo (I think that's garbo.uwasa.fi) in a programming tools directory (possibly something/msdos/programming). It's not in with the C stuff or with GNUish project stuff. You may just have to break down and use a response file. (This is most reliable in my experience.) Oops, after rereading your message, I *think* you've already tried the response file method (is that what you mean by "linker file"?) I'll leave the above in, in case it's applicable. But more likely is that file handles under DOS are a *finite resource*. What does your FILES= statement in CONFIG.SYS say? Hope this helps. +-----------------------------------------------------------------------+ | Stephen Turnbull | | University of Tsukuba, Institute of Socio-Economic Planning | | Tennodai 1-chome 1--1, Tsukuba, Ibaraki 305 JAPAN | | Phone: +81 (298) 53-5091 Fax: +81 (298) 55-3849 | | Email: turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp | | | | Founder and CEO, Skinny Boy Associates | | Mechanism Design and Social Engineering | | REAL solutions to REAL problems of REAL people in REAL time! REALLY. | | Phone: +81 (298) 56-2703 | +-----------------------------------------------------------------------+