Posted: Fri Feb 17, 2006 7:32 am
Stack size limit is adjustable in both environments, but in different ways. Moreover, the default values are quite important here.
In Linux the default is 8 MB and you can change it easily with ulimit -s for instance. The OJ can use a higher limit, but I'm not sure about that.
In VC the default is 1 MB. Windows code work in such a way that you can't change the limit after compilation, you have to set it as a linker option.
In Linux the default is 8 MB and you can change it easily with ulimit -s for instance. The OJ can use a higher limit, but I'm not sure about that.
In VC the default is 1 MB. Windows code work in such a way that you can't change the limit after compilation, you have to set it as a linker option.