https://github.com/mkj/rfunc
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mkj/rfunc
- Owner: mkj
- Created: 2023-03-14T13:38:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T13:42:24.000Z (over 3 years ago)
- Last Synced: 2025-06-24T06:05:53.405Z (12 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
A demo of calling minimal rust from C
```
./make.sh
```
`caller-check` is built with overflow checking, `caller` without. The checking
build requires the panic handler from the static lib. No-checking can work with
just the object file, unsure if there's an easy way to extract/emit it.
https://docs.rust-embedded.org/book/interoperability/rust-with-c.html
https://os.phil-opp.com/freestanding-rust-binary/#the-eh-personality-language-item