An improved chkstk function on Windows (nullprogram.com)
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 06 Feb 2024 23:47
https://inks.tedunangst.com/l/5068

If you’ve spent much time developing with Mingw-w64 you’ve likely seen the symbol ___chkstk_ms, perhaps in an error message. It’s a little piece of runtime provided by GCC via libgcc which ensures enough of the stack is committed for the caller’s stack frame. The “function” uses a custom ABI and is implemented in assembly. So is the subject of this article, a slightly improved implementation soon to be included in w64devkit as libchkstk (-lchkstk).

#compiler #cpu #programming #windows

#compiler #cpu #inks #programming #windows

threaded - newest