From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.6.10/8.6.6) id OAA14596 for caml-redistribution; Fri, 8 Mar 1996 14:48:41 +0100 Received: (from xleroy@localhost) by pauillac.inria.fr (8.6.10/8.6.6) id KAA09361; Fri, 8 Mar 1996 10:22:23 +0100 From: Xavier Leroy Message-Id: <199603080922.KAA09361@pauillac.inria.fr> Subject: Re: Command line too long To: kgallo@microsoft.com (Kevin Gallo) Date: Fri, 8 Mar 1996 10:22:23 +0100 (MET) Cc: caml-list@pauillac.inria.fr In-Reply-To: from "Kevin Gallo" at Mar 5, 96 04:29:41 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: weis > I am using CSL 1.12 (the native code compiler) and I have the problem > that my command line gets too long for my shell to handle. I see no > solution to the problem other than trying to shorten the command line > but this undesirable. Is there a way to partially link several modules > to do the compile in stages? You can use libraries as intermediate steps: cslopt -a -o templib1.cmxa cslopt -a -o templib2.cmxa cslopt -o myexec templib1.cmxa templib2.cmxa This takes a little longer to link because of the extra I/O involved with building the libraries, but it should work. > Also it would be nice if CSL could support > response files (files with the command line parameters) to allow for > unlimited argument lengths. Modern Unix systems set the ARG_MAX limit so high (128 kbytes under Linux, 40 kbytes under OSF1) that I was hoping this would not be necessary. Best regards, - Xavier Leroy