KeillRandor
Member
Hello !
I'm running a pretty advanced CCNUMA-multiprocessor simulator called RSIM, using the MESI cc-protocol. I have been running some programs, using the simulator's shared memory model with 4 processes and 4 processors. The specific architecture/programs is not interesting in this case...Some global (shared) variables can be declared as local to increase the performance of the applications, because the variables are initialized once and then only read (not modified) during the entire simulation by the processors.
My question is: Could this be explained by the fact that the compiler assign local variables into registers ?
If I'm not wrong shared variables canno't be loaded into registers (this is the same for SMP's I guess), because registers are not covered by the
cc-protocol , or ?😕
I'm running a pretty advanced CCNUMA-multiprocessor simulator called RSIM, using the MESI cc-protocol. I have been running some programs, using the simulator's shared memory model with 4 processes and 4 processors. The specific architecture/programs is not interesting in this case...Some global (shared) variables can be declared as local to increase the performance of the applications, because the variables are initialized once and then only read (not modified) during the entire simulation by the processors.
My question is: Could this be explained by the fact that the compiler assign local variables into registers ?
If I'm not wrong shared variables canno't be loaded into registers (this is the same for SMP's I guess), because registers are not covered by the
cc-protocol , or ?😕