public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* binutils, why default stack size this low ?
@ 2002-01-16 14:08 Pascal Obry
  2002-01-16 20:32 ` Danny Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Obry @ 2002-01-16 14:08 UTC (permalink / raw)
  To: binutils, danny_r_smith_2001, dj


> Larger reserves limited the number of threads you could start.  The
> MSVC compiler had a much smaller reserve than Cygwin before the patch.

Right, but this has the bad consequence to break some non-threaded
programs. It was always possible to change the default stack size on the
command line. Of course this is also true for non-threaded programs, but I
think that most of the programs around us do not use threads.

Even on the Ada world, where tasking is part of the language, we have many
programs that do not use tasks (threads), and those who do does not have
enough tasks to break the limit (which is around 35 if my memory 
is right).

Pascal Obry.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* binutils, why default stack size this low ?
@ 2002-01-16 13:32 Pascal Obry
  2002-01-16 14:03 ` DJ Delorie
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Obry @ 2002-01-16 13:32 UTC (permalink / raw)
  To: binutils, danny_r_smith_2001


Hello,

We have seen that the default stack size for the binutils on Windows has been
reduced to 0x200000 (2 mb). Why this have been set so low. We have seen
regressions on some (not so big) Ada code because of this change.

The change has been done on 2001-06-05:

<<
2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>

	* emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
>>

Previous version was 0x2000000 (32 mb). Note that we are talking about stack
reserve, nothing is commited as Windows does commit on use.

Pascal Obry.

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

end of thread, other threads:[~2002-01-17  3:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16 14:08 binutils, why default stack size this low ? Pascal Obry
2002-01-16 20:32 ` Danny Smith
  -- strict thread matches above, loose matches on Subject: below --
2002-01-16 13:32 Pascal Obry
2002-01-16 14:03 ` DJ Delorie

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).