The step with declaring hw registers in assembly reminds me how assignment of value to pointer is IIRC at best implementation defined, and at worst UB, and playing around with volatile saves you not from zealous optimizer.
Arguably every hardware register should be declared that way as a symbol
The step with declaring hw registers in assembly reminds me how assignment of value to pointer is IIRC at best implementation defined, and at worst UB, and playing around with volatile saves you not from zealous optimizer.
Arguably every hardware register should be declared that way as a symbol
Significant further gains are possible by simply unrolling the loop eight or 16 times to lower the overhead of the DBF per word written