Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baygeldin/libforth
Calling custom C functions from Forth REPL.
https://github.com/baygeldin/libforth
Last synced: 21 days ago
JSON representation
Calling custom C functions from Forth REPL.
- Host: GitHub
- URL: https://github.com/baygeldin/libforth
- Owner: baygeldin
- License: mit
- Created: 2016-05-19T22:16:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-30T05:56:27.000Z (over 8 years ago)
- Last Synced: 2024-11-11T05:03:37.704Z (2 months ago)
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libforth
An experiment of using Forth as a debug tool.
Proof-of-concept custom C function calling from forth REPL.Well, it's a wrapper that turns pforth to a shared library and extends it with a Forth word that can execute any defined function in the debugged target (there's no need to call it explicitly) with custom signature. It can also be run on embedded systems since pforth has nice API for them.
*Notes*:
* It requires libffi to be installed.
* Current build has some dirty hacks that let pforth to be built into a shared library. It's better to stop using submodule and just make a fork of pforth. It'll be much cleaner.
* Currently, strucures are not supported, but I have a good idea how to fix it.
* Unit-tests and CI are also needed.WORK IN PROGRESS.