Optimisation Flashcards

1
Q

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

A

X = A + B - C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following will be affected by different software.

static power consumption
dynamic power consumption
high clock frequency
static leakage

A

dynamic power consumption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Floating point operations are encouraged in embedded systems.

True
False

A

False

Floating-point operations are generally more resource-intensive and require dedicated hardware or software libraries to perform efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Loop unrolling can work on dynamic number of iterations.

True
False

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Select two methods that helps in minimizing power consumption.

loop unrolling
clock scaling
voltage scaling
application scaling

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A 100% CPU utilisation will give a ________ power usage.

worst-case
average
typical
maximum

A

worst-case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Select the three main classification for optimization in embedded systems.

Power
Compiler
Memory
Performance

A

Power
Memory
Performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following are optimization techniques for performance?

Functions calling conventions
Assembly inlining
Choosing the right data types
Hardware loops

A

Functions calling conventions
Assembly inlining
Choosing the right data types
Hardware loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

to measure voltage drop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Loop unrolling can work on dynamic number of iterations.

True
False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly