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

removed dead variables and make variables static #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tridge
Copy link
Member

@tridge tridge commented Sep 12, 2024

this saves a bit of flash space and lets the compiler do a better job of optimising
by making variables static we can see which variables are unused (the compiler will throw an error for an unused static variable)
initialising a global variable to zero isn't needed as each MCU startup auto-zeros the BSS

this PR is not at all urgent of course

@tridge tridge force-pushed the pr-static-remove-vars branch 2 times, most recently from 61fc7f0 to 3f01bf2 Compare September 28, 2024 00:09
@freasy
Copy link
Collaborator

freasy commented Sep 30, 2024

Please don't mix code PRs with new targets.

this saves a bunch of flash space and lets the compiler do a better
job of optimising
@tridge
Copy link
Member Author

tridge commented Oct 3, 2024

Please don't mix code PRs with new targets.

sorry about that, fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants