Can I change the stack size limits from within the program?

℡╲_俬逩灬. 提交于 2019-12-08 16:54:03

问题


I can configure the maximum stack size of a GHC compiled Haskell program by passing +RTS -Kn to it, where n is some number.

Is there a way to change this setting from within the program?

(I’d like to benchmark stack consumption of various functions, and hence try to run it with various limits, catching the StackOverflow exception.)


回答1:


Time has answered this with: „No“



来源:https://stackoverflow.com/questions/19950074/can-i-change-the-stack-size-limits-from-within-the-program

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!