Want to pass your ARM Accredited Engineer EN0-001 exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
The purpose of a translation lookaside buffer (TLB) is to:
A. Protect memory.
B. Improve performance.
C. Implement virtual memory,
D. Ensure correct ordering of memory operations.
When a linker is removing unused sections during a static link (for example, -remove or -gc- sections), it finds the sections to keep by following all relocations starting from:
A. The entry point(s).
B. The function named 'main'.
C. All local functions and variables.
D. The reset vector.
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)
A. Use a do/while loop instead of a for loop
B. Change the type of sum to be an unsigned short
C. Change the type of i to be an unsigned int
D. Use signed variables instead of unsigned variables
E. Declare sum as a global variable