Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

Which of the following register values would cause an unaligned access when the instruction LDRH r0, [r1] is executed?

A.

R0=0x100, R1 =0x1000

B.

R0=0x100, R1=0x1002

C.

R0=0x101, R1=0x1002

D.

R0=0x101. R1=0x1003

As part of the ABI specification, the AAPCS defines which of the following?

A.

How many levels of nested function calls are permitted on ARM systems

B.

How to measure the maximum amount of stack required by an application

C.

On which mode's stack you need to save the return address in a non-leaf function

D.

Which registers need to be preserved by a function

Assume a Big-Endian (BE) memory system with the following memory contents.

Byte Address Contents

0x100 0x11

0x101 0x22

0x102 0x33

0x103 0x44

If R5 = 0x100, what are the contents of R4 after performing the following operation?

LDR R4, [R5]

A.

0x11223344

B.

0x44332211

C.

0x22114433

D.

0x33441122

Capturing processor execution trace is characterized as being:

A.

Influenced by breakpoints.

B.

Intrusive on normal processor operation.

C.

Inaccurate regarding code execution history.

D.

Not intrusive on normal processor operation.

If a 16-bit Thumb instruction causes a Data Abort, which instruction would return from the handler to the instruction after the one that caused the data abort?

A.

SUBS PC. LR

B.

SUBS PC, LR-#4

C.

SUBS PC. LR, #6

D.

SUBS PC, LR, #8

In general, when programming in C, stack accesses will be reduced by:

A.

Disabling inlining.

B.

Never passing more than four parameters in function calls.

C.

Declaring automatic variables as "packed".

D.

Configuring the compiler to optimize for space.

Implementing loops using a decrementing counter which exits the loop when a counter reaches zero can be beneficial for power and performance. This is because:

A.

A simpler branch instruction can be used.

B.

Decrementing variables uses less power than incrementing them.

C.

The decrement and branch operations can be encoded as a single instruction.

D.

The loop termination condition check can be integrated into the subtract operation.

Cross compiling enables a programmer to:

A.

Produce a binary object that will run on processors based on any architecture.

B.

Mix different source languages within the same source file and compile with a single tool.

C.

Run code written for one processor on a processor based on a different architecture.

D.

Compile target code using a computer based on a different architecture.

Which of the following statements regarding Strongly-ordered memory is architecturally FALSE?

A.

Address locations marked as Strongly-ordered memory are never held in a cache

B.

The architecture does not permit speculative data accesses to Strongly-ordered memory

C.

A write to Strongly-ordered memory is permitted to complete before it reaches the peripheral or memory component accessed by the write

D.

The number and size of accesses to Strongly-ordered memory must be the same as that specified by the program

Which privileged mode can kernel code use to get direct access to the User mode registers R13 and R14?

A.

Abort mode

B.

System mode

C.

Hypeivisor mode

D.

Supervisor mode