Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFI interface? #37

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 3 comments
Open

FFI interface? #37

GoogleCodeExporter opened this issue Apr 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I've noticed that there is an NATIVE_CALL opcode, but cannot find any document 
for it.

Original issue reported on code.google.com by wsxiaoys...@gmail.com on 18 May 2011 at 2:58

@GoogleCodeExporter
Copy link
Author

That opcode can be used for calling native code, but it was mainly intended for 
testing native code generation from owl. It calls the machine code stored in a 
byte vector, which is assumed to be a function of 3 arguments. A few old tests 
are at 
https://github.com/aoh/owl-lisp/blob/588fabfd69dbf1a5eb714961452586b00b8160a6/mi
sc/native.scm

Owl doesn't have a proper FFI at the moment. Feel free to post here if you have 
need for one and I'll see what I can do, or if you have interest to work on it 
yourself.

Original comment by aohelin on 18 May 2011 at 6:07

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

This will need to be added at a later, but changing status since I'll have to 
study how this is handled in other languages first. I don't have enough 
experience to decide which of the options would be good, so probably better to 
steal a design that has worked elsewhere.

Original comment by aohelin on 21 Dec 2011 at 1:04

  • Changed state: Meditate

@GoogleCodeExporter
Copy link
Author

Some Scheme FFI systems I prefered:

chibi-scheme:
http://synthcode.com/scheme/chibi/#h1_CFFI

gambit-scheme:
http://www.iro.umontreal.ca/~gambit/doc/gambit-c.html#C_002dinterface

Original comment by zhangm...@google.com on 25 Dec 2011 at 7:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant