Background I'm working part-time on a Cortex M0+ based SoC converting a very processor-intensive section of C++ code (inner-loop executed 10s of 1000s of times a second & compiles to over 400 instructions using GNU O3) and after almost 3 months of work…
I've noticed that arm gcc, when compiling code for Cortex-M0 (at least) seems to generate instructions:
adds r0, r2, #0
Where I'm pretty sure that it the same as:
movs r0, r2
In fact, I can disassemble a relatively substantial program and not…
I am trying to count the number of trailing zeros in floating points without using the clz command. what would be the easiest way to rewrite this code?
ctz RSB r1,r0,#0 CMP…