哪种语言/平台没有固定的堆栈大小? [英] which language / platform doesn't have a fixed stack size?

查看:35
本文介绍了哪种语言/平台没有固定的堆栈大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些语言或平台是否没有固定大小的堆栈,因此不容易溢出?我记得在 UNIX 上使用 C 时,堆栈很难溢出,而在 Win 3.1 的时代,堆栈非常容易溢出.

does some language or platform not have a fixed size of stack and therefore not easy to overflow? I remember using C on UNIX, the stack was difficult to overflow while back in the days of Win 3.1, the stack was very easy to overflow.

推荐答案

如果说堆栈"是指任何旧堆栈,大多数语言都会这样做——Java 有一个 stack 类仅受内存限制.您更有可能指的是调用堆栈,在这种情况下,我能想到的最大示例是 Stackless Python,其中,据我所知,使用纯 python 内存限制堆栈(如 Java 的)作为 Python 代码的调用堆栈,而不是使用 C 的调用堆栈.

If by "stack" you mean any old stack, most languages do-- Java has a stack class limited only by memory. More likely you mean the call stack, in which case the biggest example I can think of is Stackless Python, which, to my understanding, uses a pure-python memory-limited stack (like Java's) as the call stack for Python code, rather than using C's call stack.

这篇关于哪种语言/平台没有固定的堆栈大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆