[MCS51] Add mcs51-unknown-none-elf Tier 3 target#2
Open
Liz Shirley (elizabethshirley) wants to merge 1 commit into
Open
[MCS51] Add mcs51-unknown-none-elf Tier 3 target#2Liz Shirley (elizabethshirley) wants to merge 1 commit into
Liz Shirley (elizabethshirley) wants to merge 1 commit into
Conversation
Adds the MCS51 (8051) architecture as a Tier 3 Rust target. Target triple: mcs51-unknown-none-elf - 16-bit pointer width, 8-bit Harvard architecture - Bare-metal embedded (no_std only) - SDCC-compatible ABI: i8 in ACC, i16 in DPTR, unsigned char default - Targeting upstream Tier 3 contribution (tracking issue included) Changes: - compiler/rustc_target/src/spec/targets/mcs51_unknown_none_elf.rs - compiler/rustc_target/src/spec/mod.rs (registration) - compiler/rustc_target/src/asm/mod.rs (Arch::Mcs51) - compiler/rustc_target/src/callconv/mod.rs - compiler/rustc_target/src/target_features.rs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
mcs51-unknown-none-elfas a Rust Tier 3 target for the MCS-51 (8051) processor family, targeting the Silicon Labs C8051F410. Intended for upstream submission per the Rust Target Tier Policy.Target spec
#[no_std]onlyFiles changed
compiler/rustc_target/src/spec/targets/mcs51_unknown_none_elf.rs— target speccompiler/rustc_target/src/spec/targets/mod.rs— registrationCompanion work
egym-playground/llvm-projectfeat/mcs51-backendmcs51-rt,mcs51-halin the LLVM dev branchTier 3 criteria
#[no_std]only — no host toolchain dependency