Re:Arduino-copilot makes it easy to use Haskell to program a...
by joeyh on Sunday January 26, 2020 @09:28AM
(#22152200)
Doing some constant folding, the C compiler would arrive at something like this:
Only the s0[s0_idx] = s0[s0_idx] looks like extra work now. I don't know if a C compiler would optimise that away, but assuming it does not, one extra memory write per loop is not bad overhead.
[ Parent
| on HN ]
There are no comments on this comment yet.