Machine-translated by Google. Questions are authored in English.
Top

Discussion

Moving from an 8-bit to a 32-bit core often reduces code size for arithmetic-heavy work because

  • A.32-bit parts always carry more flash than 8-bit parts
  • B.the compiler for a 32-bit part optimises more aggressively
  • C.multi-byte operations need no software emulation
  • D.the 32-bit instruction encoding is shorter than the 8-bit one

Answer: C

A 16-bit add on an 8-bit machine becomes several instructions with carry handling, and a 32-bit multiply becomes a library call. Doing it in one instruction saves both space and time, which often outweighs the wider instruction encoding.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.