Message-ID: Date: Fri, 2 Mar 2001 17:38:29 +0000 To: Eli Zaretskii Cc: djgpp AT delorie DOT com From: Philip Boucherat Subject: Re: Where does command line length limitation come from? References: <2593-Fri02Mar2001184433+0200-eliz AT is DOT elta DOT co DOT il> In-Reply-To: <2593-Fri02Mar2001184433+0200-eliz@is.elta.co.il> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 4.02 M Reply-To: djgpp AT delorie DOT com In message <2593-Fri02Mar2001184433+0200-eliz AT is DOT elta DOT co DOT il>, Eli Zaretskii writes >> From: Philip Boucherat >> Newsgroups: comp.os.msdos.djgpp >> Date: Fri, 2 Mar 2001 15:51:22 +0000 >> >> I finally got round to building a M68K cross compiler from the V2.952 >> gcc sources using djgpp on Windows 95 as my native compiler, but all the >> tools I've built have got a command line length limit of around 160 >> characters. > >Can you be more specific about the actual limitation? Is it possible >that the limit is 126 characters, not 160? I have never heard about >160-character limit. > >The stock DOS and Windows shells have a 126-character limit on passing >commands line to and from DOS programs. More accurately, the DOS >function which invokes programs supports 126-character command lines. >DJGPP programs work around this limitation by passing command lines >via a memory buffer. > >As long as you use DJGPP programs to invoke other DJGPP programs, I >don't see how can you not get the long command lines that are a >standard DJGPP feature, unless you explicitly invoke COMMAND.COM. Eli, Thanks for that, I think that must be the problem as I am using Microsoft NMAKE to invoke the compiler and other tools. From what you say, if I switch over to using GNU make (the DJGPP version), then this problem will go away, Cheers, Phil -- Philip Boucherat