Skip to content

Add EABI C examples#176

Draft
jonathanpallant wants to merge 5 commits into
mainfrom
add-eabi-C-examples
Draft

Add EABI C examples#176
jonathanpallant wants to merge 5 commits into
mainfrom
add-eabi-C-examples

Conversation

@jonathanpallant

Copy link
Copy Markdown
Contributor

This is to check Rust/C interop (but only as a basic smoke test).

It looks like cc-rs needs updating to understand all these targets, as you get errors about "this architecture doesn't have an FPU" where cc-rs failed to add an -mfpu=blah option automatically.

This does a very basic EABI check. We don't examine all the details, but
it's enough to see whether we agree on short-enums, or the hard-float
ABI.

CI updated to install GCC (for cc-rs) and libclang1 (for bindgen).

cc-rs doesn't currently support all our targets, so this will fail.
It requires a C compiler and most CI jobs don't have one.
@jonathanpallant

Copy link
Copy Markdown
Contributor Author

Updated to use a fork of cc-rs at https://github.com/jonathanpallant/cc-rs/tree/add-more-bare-metal-arm, with a bunch of fixes for these targets. The upstream PR is at rust-lang/cc-rs#1753.

@jonathanpallant jonathanpallant marked this pull request as draft June 9, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant