Symbian 的堆栈限制也适用于 PyS60 吗?

发布于 2024-07-14 10:50:00 字数 53 浏览 6 评论 0原文

Symbian 的堆栈限制为 8kB。 这是否也适用于 PyS60 应用程序中的函数调用?

Symbian has a stack limit of 8kB. Does this also apply to the function calling in PyS60 apps?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

赠佳期 2024-07-21 10:50:00

是的,PyS60基于CPython,因此使用C堆栈。

Yes, PyS60 is based on CPython, thus uses the C stack.

一张白纸 2024-07-21 10:50:00

python 运行时和 python 应用程序之间存在差异。 另外,从 PyS60 应用程序开发人员的角度来看,更有趣的是堆大小......

版本 1.9.5 默认情况下堆大小为 100k(最小值)和 4M(最大值)。 当然,您可以在创建 SIS 包来发布和分发您的应用程序时自己定义这些。

抱歉,如果我用错误的答案回答了正确的问题(堆栈与堆)。

堆栈通常是“足够的”,但如果递归足够深,您可能会用完它。 已经完成了 - 并修复了一些无限循环:) 从未遇到过任何真正的堆栈问题。 通常是堆耗尽,尤其是图形操作时。

There is a difference between python runtime and python apps. Also from PyS60 app developer point of view, it's the heapsize that's more interesting...

Version 1.9.5 comes by default with heapsize 100k min and 4M max. Of course you can define those by yourself when creating the SIS package to release and distribute your application.

Sorry if I answered right question with wrong answer (stack vs heap).

Stack is usually "enough", but with deep enough recursion you can run out of it. Have done it - and fixed some endless loops :) Never had any real stack problems. Usually it's the heap that runs out, esp with graphics manipulation.

凉风有信 2024-07-21 10:50:00

增加 Symbian 堆栈大小是通过 mmp 文件中的参数来完成的。
当您创建工具链将转换为 exe 文件的本机应用程序时,这是有效的。

如果您要使用自己构建的版本升级手机上的 Python 运行时,则可以增加运行时进程本身的堆栈大小。

Increasing the Symbian stack size is done through a parameter in the mmp file.
This is valid when you create a native application that the toolchain will turn into an exe file.

If you were to upgrade the Python runtime on your phone, with a version you built yourself, you could increase the stack size of the runtime process itself.

踏月而来 2024-07-21 10:50:00

我认为 PyS60 应该为您进行内存管理,因为您的程序可能会受到 PyS60 资源的限制。

I would assume that PyS60 should be doing the memory management for you, as your program will probably be constrained by the resources of PyS60.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文