GlasgowEmbedded / glasgow

Scots Army Knife for electronics
BSD Zero Clause License
1.92k stars 189 forks source link

Firmware read pull io expander input #650

Open purdeaandrei opened 3 months ago

purdeaandrei commented 3 months ago

-59 bytes optimization + 72 bytes for the feature, results in +13 bytes total change

purdeaandrei commented 3 months ago

-59 bytes optimization +72 bytes for the feature -3 bytes eliminating redundant write -32 bytes opimizing by using bit access instructions when accessing IO registers results in -22 bytes total change

whitequark commented 3 months ago

There are many unrelated changes making this PR difficult to review.

purdeaandrei commented 3 months ago

I've set this as a draft for now, and I have split off two of the optimizations as separate PRs to make it easy to review: https://github.com/GlasgowEmbedded/glasgow/pull/652 https://github.com/GlasgowEmbedded/glasgow/pull/651

I will clean this PR up once those PRs are resolved.