Name: Anonymous 2014-04-27 6:01
Suppose we have
then
1. how much faster is dataS[index] over dataD[index]?
2. Will CPU's cache amend the indirection?
3. should we strive to make everything global?
4. How global variables affect multi-threading?
#define SIZE 1024*1024*512
uint8_t dataS[SIZE];
uint8_t *dataD;
/* ... */
dataD = malloc(SIZE);
then
1. how much faster is dataS[index] over dataD[index]?
2. Will CPU's cache amend the indirection?
3. should we strive to make everything global?
4. How global variables affect multi-threading?