How to avoid Max Command line size on Windows
Brian Dessent
brian@dessent.net
Fri Nov 18 03:18:00 GMT 2005
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
More information about the Gcc-help
mailing list