This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [patch ld]: Increase stack size to be 10 MB by default


Kai Tietz wrote:

>         * emultempl/pep.em (init): Reserved stack size
>         defaults to 10 MB.

This used to default to 32MB, but it was reduced to 2MB because of the
concern that in multi-threaded apps every thread gets a stack of this
size by default:
<http://sourceware.org/ml/binutils/2001-06/msg00054.html>.  I understand
that the problem is that some gcc files or testcases require a larger
stack, but shouldn't that be handled in gcc and not by changing the
defaults of the linker?  I just verified that the Microsoft Visual
Studio 2005 linker does default to 1MB StackReserve as stated in that
message.

Brian


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