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

Deal with float usage #1

Open
Nakrez opened this issue Dec 27, 2015 · 0 comments
Open

Deal with float usage #1

Nakrez opened this issue Dec 27, 2015 · 0 comments

Comments

@Nakrez
Copy link
Contributor

Nakrez commented Dec 27, 2015

Currently floats are not disabled by the target or the build system. The libcore used is not patched to remove float support. This might result in LLVM generating instructions using floats (optimization, ...) which will lead to a crash. This will happen because float related support is not present for any targets.

These two options are available:

  • Enable floats on targets that support them and save corresponding registers on context switch / interruptions
  • Disable float support from Uni.rs

The second one should probably be the default, but the first one could be activated when the target supports floats (See: rust-lang/rfcs#1364).

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