Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidchisnall/jsrun
Experimental JavaScript interpreter for FreeBSD
https://github.com/davidchisnall/jsrun
Last synced: 3 months ago
JSON representation
Experimental JavaScript interpreter for FreeBSD
- Host: GitHub
- URL: https://github.com/davidchisnall/jsrun
- Owner: davidchisnall
- Created: 2015-02-18T15:49:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-25T12:42:49.000Z (almost 9 years ago)
- Last Synced: 2024-04-24T15:16:07.556Z (7 months ago)
- Language: C
- Size: 1.15 MB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - jsrun
README
Duktape FFI Experimentation
===========================This repository contains a simple program that wraps the DukTape embedded
JavaScript interpreter and implements the required platform-specific
functionality for module loading. It also includes a program that generates C
code for FFI.Given a C file, the ffigen program writes (to standard output) a C file that
can be compiled into a library and willTo compile the example test, run these commands:
$ make
$ cd examples
$ ../ffigen test.c > generated.c
$ indent generated.c
$ clang -g wrapper.c -fPIC -shared -o test.soYou can then run the `tst.js` example with jsrun and it will load the shared
library and be able to find the relevant functions.