Skip to main content
  1. Posts/

Some ARM processors to this day can't do division

Some ARM Cortex processors, more specifically the Cortex M0, M0+ and M1 don’t have divide instructions. Instead, to achieve division, the compiler has to break down division operations into a bunch of instructions or use some optimized formula, such as division by invariant multiplication when possible.

And it gets even harder on older CPUs, such as the Z80, that couldn’t even do multiplication natively.

Here’s a video from Low Level Learning about the topic: