Thread: What is MinGW64 GCC default stack size?

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    3,920

    What is MinGW64 GCC default stack size?

    What is MinGW64 GCC default stack size?

    I am trying to port SDCC (Small Device C Compiler) to MSys2 (CygWin Fork that has MinGW shells) 64 bit and 32 bit version of MinGW64 and ran into stack size issue at run-time of the SDCC.exe program. And, I wondered what the default stack size is or how can I find out on windows what a program default stack size is.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,282
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    3,920
    dumpbin.exe with option headers gives the below for an 32 bit MinGW64 app. I think this value is the default.

    Code:
    200000 size of stack reserve
    The value seems to be a hex value.
    Converts to 2,097,152 bytes

    Tim S.
    Last edited by stahta01; 09-22-2020 at 12:31 AM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MinGW64 strange error
    By awsdert in forum Tech Board
    Replies: 0
    Last Post: 01-07-2019, 08:24 AM
  2. Changing default stack size with MinGW/GCC?
    By Viper187 in forum C Programming
    Replies: 16
    Last Post: 03-22-2013, 01:07 PM
  3. max default buffer size in the write function
    By radeberger in forum C++ Programming
    Replies: 1
    Last Post: 03-19-2009, 08:46 AM
  4. default stack size on modern Linux?
    By cyberfish in forum C++ Programming
    Replies: 3
    Last Post: 02-03-2008, 06:36 PM
  5. Replies: 5
    Last Post: 09-03-2001, 09:45 PM

Tags for this Thread