Skip to content

Replace TockValue's auto-derived Debug implementation with a hand-written implementation optimized for size. #85

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

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

jrvanwhy
Copy link
Collaborator

@jrvanwhy jrvanwhy commented Aug 8, 2019

For Google's h1b_tests application, this saves 9440 bytes in .text. The caveat is that invoking Debug on a TockValue will not format the value contained in the TockValue::Expected().

This contains the commit from #86 so that Travis passes, and should be merged no sooner than #86 .

@jrvanwhy
Copy link
Collaborator Author

jrvanwhy commented Aug 9, 2019

This improves the situation described in #84

@jrvanwhy
Copy link
Collaborator Author

jrvanwhy commented Aug 9, 2019

The serde version and Debug changes should be independent -- I'll separate the serde changes into separate PRs shortly.

…s' toolchain.

The latest version of serde requires a newer toolchain. This change allows the examples to keep building, un-breaking the Travil build.
…tten implementation optimized for size.

For Google's h1b_tests application, this saves 9440 bytes in .text. The caveat is that invoking Debug on a TockValue will not format the value contained in the TockValue::Expected().

I'm blocking serde updates so that the CI passes.
@jrvanwhy
Copy link
Collaborator Author

jrvanwhy commented Aug 9, 2019

The serde version fix has been separated into #86 .

jrvanwhy added a commit to jrvanwhy/tock-on-titan that referenced this pull request Aug 9, 2019
The flash hardware does not accept writes that set bits that were previously unset -- this change emulates that behavior.

Depends on tock/libtock-rs#85.
jrvanwhy added a commit to jrvanwhy/tock-on-titan that referenced this pull request Aug 9, 2019
The flash hardware does not accept writes that set bits that were previously unset -- this change emulates that behavior.

Depends on tock/libtock-rs#85.
jrvanwhy added a commit to jrvanwhy/tock-on-titan that referenced this pull request Aug 9, 2019
The flash hardware does not accept writes that set bits that were previously unset -- this change emulates that behavior.

Depends on tock/libtock-rs#85.
jrvanwhy added a commit to jrvanwhy/tock-on-titan that referenced this pull request Aug 9, 2019
The flash hardware does not accept writes that set bits that were previously unset -- this change emulates that behavior.

Depends on tock/libtock-rs#85.
@jrvanwhy jrvanwhy removed the request for review from phil-levis-google August 9, 2019 17:31
@jrvanwhy jrvanwhy merged commit 17a647a into tock:master Aug 9, 2019
@jrvanwhy jrvanwhy deleted the smaller-debug branch August 9, 2019 17:52
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.

2 participants