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

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

问题描述

我要寻找最佳的脚本语言间preTER交叉编译到一个ARM处理器。下面是最佳的要求:


  • 它的小。理想情况下,我想能够决定所支持语言的哪些部分和标准库。 (例如:。文件系统,全息不想让浮点运算,都能跟得上不想,要么)


  • 它很容易。理想情况下,我想就如何做好交叉编译一些文档/教程/例子。


目标:我在一个嵌入式ARM器件写一个小的,简单的web服务器,我想轻松地做一些字符串处理。在code目前正在用C写的,我想在服务器和系统级code是在C.我想编写一个脚本语言在Web应用程序。该语言特性,我最感兴趣的是:


  • 内置字符串支持

  • 内置的正则表达式的支持

  • 内置地图支持(即键 - 值对的对象)

我想要的最佳来自下面的列表:Perl,Python和Ruby的,Lua中。不过,我将开放给其他语言的建议。


解决方案

我会考虑的Lua


  

lua是分布在一个小包装,并构建出的即装即用的所有
  有一个ANSI / ISO C编译器的平台。 LUA运行于所有口味
  Unix和Windows,同时还对移动设备(如手持
  使用BREW,Symbian和掌上电脑等电脑和手机)和
  嵌入式微处理器(如ARM和兔)应用程序
  像LEGO MINDSTORMS。


的Lua相比,Python的

(注:我真的很喜欢Python和通用scriping将在便携性和嵌入式处理器的性能我偏向的Lua而言preFER它到Lua的的)

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.

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:

  • built-in string support
  • built-in regex support
  • built-in map support (i.e key-value pairs object)

I'd like the "best" to come from the following list: Perl, Python, Ruby, Lua. But I would be open to other language suggestions.

解决方案

I would consider Lua.

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 compared to Python

(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天全站免登陆