/Gs (Control Stack Checking Calls) (C++)

Usually you might have faced the following issue while compiling on Visual Studio .NET 2005.

error LNK2019: unresolved external symbol __chkstk referenced in function…

This is caused by stack probes. Either you can increase the size of the stack to what ever maximum your function uses using Gs option (Default for x64 is /Gs8192) or using heap.

Gs option is an advanced feature to control stack probes. A stack probe is a sequence of code the compiler inserts into every function call.

Read more on MSDN

Blogged with the Flock Browser

About the Author

Yogi

21 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.

Comments

Comments are closed