Expand stack in Cygwin

2012-06-12 Thread Robert Lewis
How does one increase the stack size of an application using Cygwin?  I have 
googled this and found suggestions such as adding

-W1,--stack,800

to make the stack 8 meg.  However, this doesn't work for me.  I include this as 
an option to gcc in my makefile and bash just reports an error message.

Robert H. Lewis
Fordham University

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Expand stack in Cygwin

2012-06-12 Thread René Berber

On 6/12/2012 4:43 PM, Robert Lewis wrote:


How does one increase the stack size of an application using Cygwin?
I have googled this and found suggestions such as adding

-W1,--stack,800

^
Wrong, change the "1" to the letter "l".


to make the stack 8 meg.  However, this doesn't work for me.  I
include this as an option to gcc in my makefile and bash just reports
an error message.


That's probably something else.
--
René Berber


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Expand stack in Cygwin

2012-06-12 Thread marco atzeri

On 6/12/2012 11:43 PM, Robert Lewis wrote:

do not reply to a different thread to open a new thread.


How does one increase the stack size of an application using Cygwin?  I have 
googled this and found suggestions such as adding

-W1,--stack,800


-Wl not -W1 to pass the dato to the linker

http://cygwin.com/faq-nochunks.html#faq.programming.adjusting-heap



to make the stack 8 meg.  However, this doesn't work for me.  I include this as 
an option to gcc in my makefile and bash just reports an error message.

Robert H. Lewis
Fordham University



Regards




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Expand stack in Cygwin

2012-06-13 Thread Robert Lewis
Thanks to all who wrote.  Yes, the problem was that it should be Wl, not W1.  
(el not one)

That makes the compiler happy, and actually solves the odd crashing I was 
getting.

Robert H. Lewis
Fordham University
http://home.bway.net/lewis/

--- On Tue, 6/12/12, R Berber  wrote:

>
> Subject: Re: Expand stack in Cygwin
> Date: Tuesday, June 12, 2012, 6:03 PM
> On 6/12/2012 4:43 PM, Robert Lewis
> wrote:
> 
> > How does one increase the stack size of an application using Cygwin?
> > I have googled this and found suggestions such as adding
> >
> > -W1,--stack,800
> ^

> Wrong, change the "1" to the letter "l".

> 
> > to make the stack 8 meg.  However, this doesn't
> work for me.  I
> > include this as an option to gcc in my makefile and
> bash just reports an error message.
> 
> That's probably something else.
> -- 
> R Berber
> 

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple