Skip to content

Fix Progmem read over optimization #3164

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

Closed
wants to merge 1 commit into from
Closed

Fix Progmem read over optimization #3164

wants to merge 1 commit into from

Conversation

Makuna
Copy link
Collaborator

@Makuna Makuna commented Apr 22, 2017

The compiler is overoptimizing a 32bit aligned read to the requested
size (8 or 16 bit) but due to the flash requirement that reads must
always be 32bits in size this will cause an exception when the code is
run.
This change hints to the compiler that it can't optimize the read size.

The compiler is overoptimizing a 32bit aligned read to the requested
size (8 or 16 bit) but due to the flash requirement that reads must
always be 32bits in size this will cause an exception when the code is
run.
This change hints to the compiler that it can't optimize the read size.
@Makuna
Copy link
Collaborator Author

Makuna commented Apr 22, 2017

#3140

@codecov-io
Copy link

Codecov Report

Merging #3164 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3164   +/-   ##
======================================
  Coverage    27.6%   27.6%           
======================================
  Files          20      20           
  Lines        3655    3655           
  Branches      678     678           
======================================
  Hits         1009    1009           
  Misses       2468    2468           
  Partials      178     178

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a922426...a55ce78. Read the comment docs.

@igrr
Copy link
Member

igrr commented Apr 28, 2017

Decided to go for inline assembly approach, but thanks for the PR and looking into this @Makuna!

@igrr igrr closed this Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants