Which of the following processor resources do NOT have to be saved or modified by the Linux scheduler during context switch?
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)
According to the AAPCS (with soft floating point linkage), when the caller "func" calls sprintf, where is the value of the parameter "x" placed?
#include
void func(double x, int i , char *buffer)
{
sprintf(buffer, "pass %d: value = %f\n", i, x); }