-
Notifications
You must be signed in to change notification settings - Fork 225
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
tier 3 target and broken #560
Comments
BTW, I'm still a bit newbie when it comes to rust-avr, but I found that core will build debug mode if you add to
Reviewing rust-lang/rust#126349 it seems like we might have a few ways to go here, maybe from easiest to hardest:
I'm happy to pitch in here but I would probably need a bit of guidance on which approach to take... |
Slightly off-topic for this issue, but @adicarlo, you should be setting even more compiler tunes to get AVR programs to build properly: Lines 1 to 11 in 65b304e
|
@Rahix i see that, from over at https://github.com/Rahix/avr-hal-template/blob/main/Cargo.toml#L55 You say "needed to build" but I'm able to build without all that -- I assume you're saying it wouldn't work (or work well) on actual hardware w/o those settings from the template? |
On Thu, Aug 15, 2024 at 04:08:14PM -0700, Adam Di Carlo wrote:
you're saying it wouldn't work (or work well) on actual hardware
Yes.
Experiment for those who don't want to get their feet wet on true hardware:
- Build with recommend settings
- Build with "Hey, it compiles" settings
- Compare size of the executables
|
I suspect this is the same register allocation bug: llvm/llvm-project#104032 |
@aykevl that's very promising! You boiled out a simple/general test case. Looks like its getting some action too... |
This issue is for creating awareness for rust-lang/rust#126349
avr-unknown-gnu-atmega328 (ran out of registers during register allocation)
That rust lang request got my attention, but have no resources available for any follow-up. Hence this issue.
I hope some one accepts the challenge.
Any way: Happy Hacking
The text was updated successfully, but these errors were encountered: