FFI
FFI
Yicheng Qin Qingping Hou
What is FFI?
Foreign function interface The program of one programming language can call functions written in other languages!
We want to implement the bridge from Lua to C in ktap!
Call kernel function Use kernel data structure ...and crash the kernel!
1
General FFI architecture
Call function in another language
Interpret function settings
Call function
Return result
2
libffi
Only provide the lowest, machine dependent layer of a fully featured foreign function interface
Mainly the third layer in the above graph
3
libffi x86
1. Init call interface ABI number and type of arguments special handle to variadic one return type
2. Call function function address pointer to arguments pointer to return value
4
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ktap ffi proposal
- an intermediate representation for structured input lua
- small is beautiful the design of lua
- a first option is to create variables in the lua
- programming in lua extending lua
- integers in lua 5
- ml module mania a type safe separately compiled
- pydgin generating fast instruction set simulators from
- last edit 07 02 2010 lua 5 1 c api
- ray tracing tutorial github pages