This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Maximum # of program arguments


--- Mike Kasprzak <mike@swoo.net> wrote:
> Hey there,
> 
> I'm having problems linking with an ARM targeted GCC cross compiler.  It
> looks like I may have hit some sort of limit for number of character or
> arguments to an executable (I keep getting "fork" errors, and child cant
> find blah blah blah).  I do have quite possibly over 16k characters I'm
> passing as arguments to a program.  Whats the maximum, and how can I
> increase it?? :).
> 
> I'm running the latest (downloaded yesterday) CYGWIN, GCC's (3.1.1 and
> 2.9.x), MAKE, ...
> 
> Any help would be appreciated. :)

On WinNT/2K/XP the maximum length of the command line in cygwin is 8K. 
For some reason, it is 256K in Win9X/ME.  Still, you should probably limit
yourself to 8K for maximum portability.

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]