Lua 在 PPC Micro 上的足迹
我们正在 Freescale PPC micros(目前是 5517 和 5668)上开发一些代码,我想知道我们是否可以在它们上放置 Lua。
这些设备需要在现场轻松编程/重新配置,当前产品使用可以加载的专有解释逻辑语言,并且我们的软件(用 C 编写)运行解释器。我想转向一种更好的语言(实现有点错误且缓慢),所以我正在考虑 Lua,但内存占用必须非常低。对于5517(我们可能不会使用),最大RAM是80K。 5668 的情况更好,有 592K RAM。
那么有人知道我是否可以将 Lua 放在裸机上吗?我们实际上并没有运行操作系统。如果是这样,是否对我们可能会看到的内存占用有任何估计?需要付出多大的努力?
如果做不到这一点,有谁知道在没有操作系统的内存受限环境中可能更好的任何类型的解释器?或者我们最好自己推出?
We're developing some code on Freescale PPC micros (5517 and 5668 at the moment), and I was wondering if we could put Lua on them.
The devices need to be easily programmed/reconfigured in the field, and the current product uses a proprietary interpreted logic language that can be loaded in, and our software (written in C) runs an interpreter. I would like to move to a better language (the implementation is a bit buggy and slow), so I'm considering Lua, but the memory footprint must be very low. For the 5517 (which we may not use), the maximum RAM is 80K. Things are better on the 5668, with 592K of RAM.
So does anyone know if I can put Lua on bare metal? We're effectively not running an OS. If so, are there any estimates on what kind of memory footprint we might see? How much effort it would take?
Failing this, does anyone know of any kind of interpreter that might be better in a memory-constrained environment without an OS? Or are we better just rolling our own?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 eLua 项目。
See the eLua project.