Skip to content

target tier 3 support for hexagon-unknown-qurt #919

@androm3da

Description

@androm3da

Proposal

Add target tier 3 support for QuRT RTOS on Hexagon.

Motivation, rationale

QuRT is the most widely deployed OS on Hexagon ISA cores. It's used in compute DSPs, audio DSPs, and more. It's likely that it's the only OS used on the Hexagon cores in commercial Snapdragon/Dragonwing devices.

Today, users can deploy rust no_std programs to QuRT targets using the hexagon-unknown-none-elf baremetal target. But having access to libstd opens up the number of use cases significantly.

  • QuRT has support for large portions of POSIX dependencies of libc including threads, filesystems, time, signals.
  • As it has been for the other hexagon targets, the contributions made to support hexagon-unknown-qurt will be made under the standard Rust license.
  • I'll (@androm3da) be the maintainer and will continue to seek out additional maintainers for this and the other hexagon targets.
  • QuRT doesn't have interactive shells, it wouldn't make sense as a platform to host Rust tools. So it'll be designated strictly as a cross-compiled target.
  • Existing clang toolchains use hexagon-unknown-elf (from hexagon-clang) as a generic target that can include QuRT and users/build systems targeting QuRT explicitly add the necessary include, library paths. Writing portable code for QuRT and other OSs can be challenging or awkward in the status quo. I believe this will stay this way but I don't believe that Rust using hexagon-unknown-qurt instead should cause problems. This is a good subject for discussion in the MCP because it's identified as a concern when creating new targets, including tier 3 ones.

Mentors or Reviewers

I expect to do the work but welcome mentorship from @bjorn3 or @tgross35 or anyone else on the team willing to provide guidance.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member who is knowledgeable in the area can second by writing @rustbot second or kickoff a team FCP with @rfcbot fcp $RESOLUTION.
  • Once an MCP is seconded, the Final Comment Period begins.
    • Final Comment Period lasts for 10 days after all outstanding concerns are solved.
    • Outstanding concerns will block the Final Comment Period from finishing. Once all concerns are resolved, the 10 day countdown is restarted.
    • If no concerns are raised after 10 days since the resolution of the last outstanding concern, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teamfinal-comment-periodThe FCP has started, most (if not all) team members are in agreementmajor-changeA proposal to make a major change to rustcto-announceAnnounce this issue on triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions