Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpile c to rust using c2rust? #2194

Open
NobodyXu opened this issue Dec 21, 2024 · 0 comments
Open

Transpile c to rust using c2rust? #2194

NobodyXu opened this issue Dec 21, 2024 · 0 comments

Comments

@NobodyXu
Copy link
Contributor

NobodyXu commented Dec 21, 2024

Recently bzip2 has used c2rust to transpile c to rust code, and gate it behind a feature flag.

I think doing the same on ring would be beneficial, it would:

  • remove c compiler as a dependency, that would also enable easier cross compilation and LTO
  • build script can be removed if transpiled rust code is used instead of the c code
  • make it possible to run miri over ring

It would be a difficult though, especially because all the assembly has to be rewritten into rust as well.

Putting them into C as inline assembly might make it easier though.

@NobodyXu NobodyXu changed the title Transpjle c to rust using c2rust? Transpile c to rust using c2rust? Dec 22, 2024
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

No branches or pull requests

1 participant