Skip to content

Use frame pointer instead of unwind tables for VEXos debugging - #165665

Open
lewisfm wants to merge 1 commit into
rust-lang:mainfrom
vexide:feat/vexos-frame-ptr
Open

lewisfm wants to merge 1 commit into
rust-lang:mainfrom
vexide:feat/vexos-frame-ptr

Conversation

@lewisfm

@lewisfm lewisfm commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Enables frame pointers by default on VEXos, and disables unwind tables by default. Unwind tables are primarily used on VEXos for backtraces, but frame pointers are a bit smaller and don't require a heavyweight parser library like libunwind.

The main reason to keep unwind tables around would be for unwinding - but this platform uses panic-abort, or for ecosystem compatibility - but all Rust VEXos frameworks I'm aware of either already support using the frame pointer to generate backtraces or don't use this target anyways.

Rust's libstd doesn't support backtraces on this platform either way, so there is no functionality change there.

These changes should help improve binary size a bit without losing much debug info.

@rustbot

rustbot commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 8, 2026
@rustbot

rustbot commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

r? @fmease

rustbot has assigned @fmease.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 21 candidates

@lewisfm

lewisfm commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

cc @tropicaaal @Gavin-Niederman

@tropicaaal tropicaaal left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

View changes since this review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants