交叉编译到 ARM 的最佳脚本语言 [英] Best scripting language for cross compiling to ARM

查看:27
本文介绍了交叉编译到 ARM 的最佳脚本语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找用于交叉编译到 ARM 处理器的最佳脚本语言解释器.以下是最佳"的要求:

I am looking for the best scripting language interpreter for cross compiling to an ARM processor. Here are the requirements for "best":

  • 它很小.理想情况下,我希望能够决定支持的语言和标准"库的哪些部分.(例如:文件系统,不想要那个.浮点数学,也不想要那个.)

  • 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 编写的.

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.

我希望服务器和系统级代码使用 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)就像乐高 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
    • Lua 与 Python 的比较

      (注意:我真的很喜欢 Python,对于通用脚本而言,它比 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屋!

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