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

Prevent LLVM from optimizing away busy loop #4

Merged
merged 2 commits into from
Nov 13, 2017

Conversation

pusherofbrooms
Copy link
Contributor

Idea is from rust-lang/rust#28728.
Also, increase the loop to 400000 cycles so the blink is visible.

Idea is from rust-lang/rust#28728.
Also, increase the loop to 400000 cycles so the blink is visible.
src/main.rs Outdated
@@ -1,4 +1,5 @@
#![feature(lang_items, unwind_attributes)]
#![feature(asm)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please combine this with the previous line.

Copy link
Member

@shepmaster shepmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shepmaster shepmaster merged commit b7df391 into avr-rust:master Nov 13, 2017
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.

None yet

2 participants