守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2629|回复: 1

[其他] AngelScript 介绍

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52688
    钢镚
    1422

    开源英雄守望者

    发表于 2015-1-20 11:26:35 | 显示全部楼层 |阅读模式
    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:
    1. void main()
    2. {
    3. print("Hello world\n");
    4. }
    复制代码



    部分应用程序和游戏引擎使用AngelScript作为内置的脚本语言。


    相关链接:

    AngelScript官方网站

    AngelScript JIT 编译器


    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52688
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-20 11:35:09 | 显示全部楼层
    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








    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-4-18 15:34 , Processed in 0.042909 second(s), 30 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表