When programming in C, how many bytes of stack are needed to pass parameters when calling the following function?
int foo( int arg_a, int arg_b, int arg_c )
In the VFPv4-D32 architecture, which of the following best describes the arrangement of the registers?
According to the AAPCS, which of the following statements is TRUE with regard to preservation of register values by a function?
Consider a sequence of five independent instructions running on a pipelined processor. There are no interlocks and no data dependencies between instructions, and each instruction takes one cycle to execute. The processor has three pipeline stages and is not superscalar.
How many cycles does it take to fetch, decode and execute all five instructions in sequence, assuming that there are no pipeline stalls?
A standard performance benchmark is being run on a single core ARM v7-A processor. The performance results reported are significantly lower than expected. Which of the following options is a possible explanation?
Which of the following memory attributes, specified in a translation table entry, could be used to protect a page containing a read-sensitive peripheral from speculative instruction fetches?
In Architecture ARMv7-A which one of the following has a known physical address at power-on reset?
When building code for both ARM and Thumb states, which tool decides for each function call whether to use a BL or BLX instruction?
Which of the following ARM processors has a superscalar micro architecture?
Which one of the following debug methods is the least intrusive for analyzing a timing related bug?
Within the ARMv7 architecture, which one of the following features is unique to the ARMv7-A profile?
An advantage of removable flash memory over built-in flash memory is that:
According to the EABI. what would the C size of () operator return when given the following structure?
In an ARMv7-A processor, with which level of the memory system is the Memory Management Unit (MMU) associated?
What is the maximum value of the immediate field in an ARM SVC instruction?
Which of the following is an accurate description of network storage as compared to on-chip RAM?
In a single-processor system, which of these operations requires a barrier instruction to guarantee correct operation?
A message passing system between two CPUs is implemented using data stored in a shared area of memory. To pass a message, the first CPU executes the instructions:
The second CPU receives the message using the instructions:
On both CPUs, r1 = 0x5000 and r2 = 0x6000. At which of the points A, B, C and D must Data Memory Barrier (DMB) instructions be placed in order to ensure messages are passed reliably and efficiently?
Under which of the following circumstances would a DSB instruction be used?
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.
When using an ARM compiler, which TWO of the following optimizations could improve the performance of this code? (Choose two)
Which of the following will cause the ARM Compiler to target the Thumb instruction set?
The Performance Monitoring Unit (PMU) of a Cortex-A9 processor permits direct measurement of which one of the following?
When linking with the standard C library, which library functions MUST be redefined in order to port your code to a new piece of production hardware?