This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Specifying command line arguments in a file?
- To: Matt Hiller <hiller at redhat dot com>
- Subject: Re: Specifying command line arguments in a file?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 01 May 2001 16:18:27 -0300
- Cc: Robert Schweikert <rjschwei at hks dot com>, gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.21.0104271317040.10181-100000@breve.cygnus.com>
On Apr 27, 2001, Matt Hiller <hiller@redhat.com> wrote:
> Perhaps xargs instead, then? That's not shell-dependent.
Unfortunately, xargs is not as portable as one might like.
Passing arguments in a command file, instead of as explicit arguments,
is often useful to overcome command-line length limitations. On
certain OSs, this limit is too low to link large applications, lest to
say to pass lots of arguments. But then, it's not just a matter of
the compiler driver supporting command files: the tools the compiler
driver runs, such as the actual compiler, the assembler and, often
more importantly, the linker, must also support them, and the driver
may have to be able to tell when it's necessary to use this support.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me