public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Maximum # of program arguments
@ 2002-07-18  3:33 Mike Kasprzak
  2002-07-18  3:38 ` luke.kendall
  2002-07-18  7:08 ` Nicholas Wourms
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Kasprzak @ 2002-07-18  3:33 UTC (permalink / raw)
  To: cygwin

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. :)
Thanks,
--
Mike Kasprzak





--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maximum # of program arguments
  2002-07-18  3:33 Maximum # of program arguments Mike Kasprzak
@ 2002-07-18  3:38 ` luke.kendall
  2002-07-18  7:08 ` Nicholas Wourms
  1 sibling, 0 replies; 4+ messages in thread
From: luke.kendall @ 2002-07-18  3:38 UTC (permalink / raw)
  To: Mike Kasprzak; +Cc: cygwin

On 18 Jul, Mike Kasprzak wrote:
>  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 wouldn't have thought that would work even under Unix.

Nor did I think you could increase it.

16k!  Normally one uses a config file well before getting to that
point.  Or provide an option to read input from stdin or something -
like xargs and cpio do ...

Sorry, I know that answer doesn't help.

luke


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maximum # of program arguments
  2002-07-18  3:33 Maximum # of program arguments Mike Kasprzak
  2002-07-18  3:38 ` luke.kendall
@ 2002-07-18  7:08 ` Nicholas Wourms
  2002-07-18  9:20   ` Mike Kasprzak
  1 sibling, 1 reply; 4+ messages in thread
From: Nicholas Wourms @ 2002-07-18  7:08 UTC (permalink / raw)
  To: Mike Kasprzak, cygwin


--- 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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Maximum # of program arguments
  2002-07-18  7:08 ` Nicholas Wourms
@ 2002-07-18  9:20   ` Mike Kasprzak
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Kasprzak @ 2002-07-18  9:20 UTC (permalink / raw)
  To: cygwin

Excellent, thats exactly what I wanted to know.  Thanks.

"Nicholas Wourms" <nwourms@yahoo.com> wrote in message
news:20020718110831.33071.qmail@web21004.mail.yahoo.com...
>
> 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






--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-18 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-18  3:33 Maximum # of program arguments Mike Kasprzak
2002-07-18  3:38 ` luke.kendall
2002-07-18  7:08 ` Nicholas Wourms
2002-07-18  9:20   ` Mike Kasprzak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).