Home Forums Programming default stack frame size in VS?

Welcome to our forums. These forums were active from 2003-2014. We have now decided to close them down, but will leave them here as an archive.

Remember you can send us feedback, news, jobs and content ideas by clicking here.

If you're really stuck for time, email news@gamedevelopers.ie.

You can also follow us on Twitter @gamedev_ie 



This topic contains 1 reply, has 2 voices, and was last updated by  satchmo 9 years, 11 months ago.

  • Author
  • #6545


    Hi all,

    Just looking for some information on the default stack frame size in VS (2003, 2005, 2008, whatever).

    Working on some recursive functions, and would like to be aware of the limitations.

    Any know of any resources or tech manuals?


  • #40139


    The default stack size is 1MB, but if that’s not enough you can change it in Project Properties->Linker->System->Stack Reserve/Commit Size. Commit specifies how big the stack is initially (default 4kb), and it is allowed to grow to a maximum size specified by Reserve (default 1MB).

    1MB should be loads though – if you find yourself hitting that limit, maybe you need to rethink whether you could just switch to iteration and save yourself all that function call overhead.

The forum ‘Programming’ is closed to new topics and replies.