PDA

Просмотр полной версии : Duktape - embeddable Javascript engine



esl
05.12.2014, 19:28
http://duktape.org

скриптование для эмуляторов ?

Embeddable, portable, compact:

200kB code
46kB startup RAM (x86, default options)
22kB startup RAM (x86, lowmem options)
42kLoC source (excluding comments etc)
Can run on platforms with 256kB flash and 96kB system RAM


/* test.c */
#include "duktape.h"

int main(int argc, char *argv[]) {
duk_context *ctx = duk_create_heap_default();
duk_eval_string(ctx, "print('Hello world!');");
duk_destroy_heap(ctx);
return 0;
}