AngelScript 介绍
AngelScript,全称是AngelCode Scripting Library,是一个专门为扩展应用程序功能而开发的跨平台的脚本库。它以易于应用程序开发者和脚本开发者使用为目标而设计。AngelScript的开发者是Andreas Jönsson,2013年7月28日时的最新版本为2.27.0
AngelScript最大的特点是允许直接调用C/C++的函数和方法,而不需要额外的包装和转换。应用程序只需要简单的把C/C++实现的函数、对象(class)和方法注册给脚本,就能在脚本里面调用。
AngelScript的语法与C/C++保持一致,但有所增强,如没有指针(C++中广泛应用了指针),以及使用了自动内存管理功能(C++中大多数情况下需要自己管理内存)。此外,AngelScript的数据类型也和C/C++保持一致,这是AngelScript比其它脚本语言更容易与C/C++宿主程序集成的重要原因。
AngelScript支持JIT技术,拥有较高的运行效率。
AngelScript是完全免费的,并且基于zlib协议开源。
AngelScript和C/C++一样,是强类型静态语言,对于非专业的开发者来说,使用时不如其它一些弱类型动态语言来得方便。
AngelScript的HelloWorld:
void main()
{
print("Hello world\n");
}
部分应用程序和游戏引擎使用AngelScript作为内置的脚本语言。
相关链接:
AngelScript官方网站
AngelScript JIT 编译器
http://www.gamedev.net/topic/636508-angelscript-on-flascc/
I have successfully compiled Angelscript with max portability mode on flascc (new flash c++ compiler) and everything works fine but when i compile anything in Angelscript using build command it takes 6+ sec to compile even if that code is just of 4 lines.This problem stops flash's swf file from executing further giving error in debug mode that script is executing for long time,
If i load byte code i get error saying stack recalculation required (this error is only in flascc compiled code not in windows or android).
There is one last thing that native Calling Conventions work for SetMessageCallback so i think it means all library doesn't need to be compiled with max portability mode, I didn't tried this yet but will see later.
So if someone knows why build takes so long time please tell me and i think its good idea to add official support for flascc as it only requires makefile from gnuc folder to compile thought there is configuration for this compiler in config file.
using Angelscript version : 22401
页:
[1]