From: "AndrewJ" Newsgroups: comp.os.msdos.djgpp References: <39190753 DOT 529E894D AT st DOT com> Subject: Re: System function Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: Date: Wed, 10 May 2000 08:06:51 GMT NNTP-Posting-Host: 24.42.120.18 X-Complaints-To: abuse AT home DOT net X-Trace: news2.rdc1.on.home.com 957946011 24.42.120.18 (Wed, 10 May 2000 01:06:51 PDT) NNTP-Posting-Date: Wed, 10 May 2000 01:06:51 PDT Organization: @Home Network Canada To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I use a compiler composed of many subprograms: preprocessor, > assembler, optimizer, peephole... > To use it simply I use a driver which call all the required programs > with the right arguments and in the right order. > The problem I encounter is a line limit with the system function. > Command lines executed by the driver seem to be truncated and make my > driver disfunction in some case. > > Any Idea about it ? Well, I'm going to assume you're -not- talking about DJGPP, since the optimization code is integrated directly into the compiler. That leads me to this question: why are you posting this in the DJGPP newsgroup? It's a wee bit off-topic. Also assuming you are using DOS: DOS command lines have a maximum limit of 126 characters. Anything longer is truncated. This has to do with the part of the program that stores the command line strings for the program (the PSP, Program Segment Prefix). As for solutions, there's a few things you might try. Do your tools support response files (files with command line directives in them that are read by the appropriate application)? What about reading options from environment variables? These are the big two I can think of. If you can't use these, then I recommend you either complain to the vendor about limited functionality, or switch to a better/different compiler... like DJGPP maybe? ;) DJGPP has a few special methods where it can give your programs basically unlimited length command lines. AndrewJ