用于交叉编译到ARM的最佳脚本语言 [英] Best scripting language for cross compiling to ARM
问题描述
我正在寻找用于交叉编译到ARM处理器的最佳脚本语言解释器。以下是最佳的要求:
I am looking for the "best" scripting language interpreter for cross compiling to an ARM processor. Here are the requirements for "best":
-
它的小。理想情况下,我想要确定支持的语言和标准库的哪些部分。 (例如:文件系统,nah不要那个,浮点数学,也不想要那个。)
Its small. Ideally, I'd like to be able to decide which parts of the language and "standard" libraries that are supported. (For instance: file system, nah don't want that. Floating point math, nope don't want that either.)
它的简单。理想情况下,我想要一些关于如何进行交叉编译的文档/教程/示例。
Its easy. Ideally, I'd like some documentation/tutorial/examples on how to do the cross-compile.
目标:我正在嵌入式ARM设备中编写一个简单的小型Web服务器,我想很容易地做一些字符串处理。代码目前是用C编写的。我希望服务器和系统级代码在C中。我想用一种脚本语言编写Web应用程序。我最感兴趣的语言特点是:
The goal: I'm writing a small, simple web server in an embedded ARM device and I'd like to do some string processing easily. The code is currently written in C. I'd like the server and system-level code to be in C. I'd like to write the web "application" in a scripting language. The language features I'm most interested in are:
- 内置字符串支持
- - 正则表达式支持
- 内置地图支持(即键值对对象)
我希望最好的来自以下列表:Perl,Python,Ruby,Lua。但我会接受其他语言建议。
I'd like the "best" to come from the following list: Perl, Python, Ruby, Lua. But I would be open to other language suggestions.
推荐答案
我会考虑 Lua 。
Lua分布在一个小包中,在具有ANSI / ISO C编译器的所有
平台中构建开箱即用的。 Lua运行在
Unix和Windows以及移动设备(如手持式
电脑和使用BREW,Symbian,Pocket PC等的手机)和
嵌入式微处理器(如ARM和Rabbit)用于应用程序
,如Lego MindStorms。
Lua is distributed in a small package and builds out-of-the-box in all platforms that have an ANSI/ISO C compiler. Lua runs on all flavors of Unix and Windows, and also on mobile devices (such as handheld computers and cell phones that use BREW, Symbian, Pocket PC, etc.) and embedded microprocessors (such as ARM and Rabbit) for applications like Lego MindStorms.
- Lua中的模式匹配
- Lua表应符合您的地图要求。
- Lua字符串操作
- Pattern matching in Lua
- Lua tables should meet your map requirement.
- Lua string manipulation
(注意:我真的很喜欢Python,为了普遍目的,Scriping会更喜欢Lua 但嵌入式处理器的可移植性和性能,我倾向于Lua)。
(Note: I really like Python and for general purpose scriping would prefer it to Lua but in terms of portability and performance on embedded processors I'd lean towards Lua).
这篇关于用于交叉编译到ARM的最佳脚本语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!