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

Remove dependency on gcc/clang #10

Closed
roblabla opened this issue Mar 9, 2018 · 1 comment
Closed

Remove dependency on gcc/clang #10

roblabla opened this issue Mar 9, 2018 · 1 comment

Comments

@roblabla
Copy link
Member

roblabla commented Mar 9, 2018

Right now, we use a C compiler to compile svc.S. This is completely stupid. Let's fix that.

I can see at least two ways to fix that:

  • Simply pull the svc.S into a global_asm! block in svc.rs. This is the easiest way.
  • Use naked functions and inline asm to recode them. This gives us additional flexibility if we want to make the API more rusty.

Worth noting that the current svcs are basically a copy paste from libt, and are very C-like. I would love to turn them into something closer to rust, and would probably be possible without too much trouble.

@roblabla
Copy link
Member Author

Fixed

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