https://github.com/estebanlm/talkffi
Automatic FFI generation for Pharo
https://github.com/estebanlm/talkffi
ffi pharo
Last synced: 3 months ago
JSON representation
Automatic FFI generation for Pharo
- Host: GitHub
- URL: https://github.com/estebanlm/talkffi
- Owner: estebanlm
- License: mit
- Created: 2017-03-29T10:07:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T06:09:50.000Z (over 6 years ago)
- Last Synced: 2025-04-02T12:52:13.988Z (about 1 year ago)
- Topics: ffi, pharo
- Language: Smalltalk
- Size: 143 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TalkFFI
Automatic FFI generation for Pharo
This is a port of the project originally made by [Ciprian Teodorov](http://smalltalkhub.com/#!/~CipT/TalkFFI).
For now it supports the generation of UFFI binding, but the infrastructure should be easily retargetable to enable generation of bindings to other libraries (even other languages maybe).
To load the project evaluate:
```Smalltalk
Metacello new
repository: 'github://estebanlm/TalkFFI';
baseline: 'TalkFFI';
load.
```
IMPORTANT: You will need to define the path to your 32bit libclang dynamic library (release 3.9) in:
```Smalltalk
LibClangMap>>macModuleName.
```
For some usage scenarios look at:
```Smalltalk
CLForeign2NBGenerator libClang39Mapping.
CLForeign2NBGenerator llvmc39Mapping .
```