Intermediate Embedded Systems & IoT
Q59 / 100

Why might an embedded developer choose to write critical sections of code in assembly language rather than C?

Correct! Well done.

Incorrect.

The correct answer is A) For precise control over timing, register usage, or specific hardware instructions not easily expressed in C, especially in performance-critical or hardware-initialization code

A

Correct Answer

For precise control over timing, register usage, or specific hardware instructions not easily expressed in C, especially in performance-critical or hardware-initialization code

Explanation

While most embedded code is written in C/C++ for portability and maintainability, small critical sections (interrupt vectors, precise timing loops, startup code) sometimes use assembly for fine-grained control.

Progress
59/100