This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to avoid Max Command line size on Windows
Sisyphus wrote:
> > I don't see how that changes anything. The shell just reads the command
> > from the file and then constructs the arguments from that. It does
> > nothing to shorten the actual gcc command that must be executed.
> >
>
> I believe it's a limitation on the number of characters that can be typed
> into the command prompt, rather than a limitation on the size of the command
> that can be executed.
But we're talking about an invocation of GCC from a Makefile, not from
typing anything directly to a prompt. Or at least, that was my
interpretation of the question. Regardless of whether there is a limit
of what you can paste into CMD.EXE, there is also a limit of what you
can pass to a subprocess in CreateProcess().
Brian