Optimisation Flashcards
Which of the following equations will have the best performance for a MCU that cannot perform multiplication calculation in hardware.
X = A + B - C
X = A + B * C
X = A + B + (C * B)
X = (A + B) * C
X = A + B - C
Which of the following will be affected by different software.
static power consumption
dynamic power consumption
high clock frequency
static leakage
dynamic power consumption
Floating point operations are encouraged in embedded systems.
True
False
False
Floating-point operations are generally more resource-intensive and require dedicated hardware or software libraries to perform efficiently.
Loop unrolling can work on dynamic number of iterations.
True
False
False
Loop unrolling is not designed to work with a dynamic or variable number of iterations. It requires a fixed unrolling factor determined at compile time.
Select two methods that helps in minimizing power consumption.
loop unrolling
clock scaling
voltage scaling
application scaling
clock scaling (involves reducing the clock frequency of a microcontroller or processor)
voltage scaling (allows the voltage supplied to a microcontroller or processor to be adjusted based on the required performance)
A 100% CPU utilisation will give a ________ power usage.
worst-case
average
typical
maximum
worst-case
Select the three main classification for optimization in embedded systems.
Power
Compiler
Memory
Performance
Power
Memory
Performance
Which of the following are optimization techniques for performance?
Functions calling conventions
Assembly inlining
Choosing the right data types
Hardware loops
Functions calling conventions
Assembly inlining
Choosing the right data types
Hardware loops
What is the immediate purpose of a shunt resistor?
to profile an application
to measure power consumption
to measure voltage drop
to measure current flow
to measure voltage drop
Loop unrolling can work on dynamic number of iterations.
True
False
False