Better HN
top
new
best
ask
show
jobs
Log in
Sign up
jackieooh
1 karma · joined Sep 30, 2023 (3y ago) · 3 submissions
Submissions
comment 3y ago ·
link
·
parent
Problem is that some registers have non-zero default values (swd debug pin functions for example) so the set() function would still need to do a read modify write operation which isn't the theoretically optimal code gen.
comment 3y ago ·
link
·
parent
I'd probably write a quick python script to generate a function/string table in that case (or I could even do it with a vim macro).