EN0-001 ARM Accredited Engineer

Loading demo links...

Showing 4–6 of 15 questions

Question 4

Which TWO of the following interrupt types does a Generic Interrupt Controller (GIC) support? (Choose two)

Select all that apply, then click Submit answer.

  • Interrupt from a private peripheral to a processor

  • Interrupt from a processor to a private peripheral

  • Interrupt from a shared peripheral to a processor

  • Interrupt from a processor to a shared peripheral

  • Interrupt from a private peripheral to a shared peripheral

  • Interrupt from a shared peripheral to a private peripheral

Question 5

In an ARMv7-A system, the following C function calculates a simple checksum for an input data packet of variable length. The checksum is defined to be the sum of all of the 16-bit data items in the packet modulo 65536. The parameter data_items contains the number of 2-byte data items in the packet, and it cannot be zero by design.

C:\Documents and Settings\usernwz1\Desktop\1.PNG

When using an ARM compiler, which TWO of the following optimizations could improve the performance of this code? (Choose two)

Select all that apply, then click Submit answer.

  • Use a do/while loop instead of a for loop

  • Change the type of sum to be an unsigned short

  • Change the type of i to be an unsigned int

  • Use signed variables instead of unsigned variables

  • Declare sum as a global variable

Question 6

In which TWO of the following locations would a compiler typically place local variables? (Choose two)

Select all that apply, then click Submit answer.

  • ROM

  • Heap

  • Cache

  • Registers

  • Stack