Hey guys,

So I learned about the cpu and some real low level stuff recently and I have to ask, are global/static variables or functions slower to access/call?

The reasoning may be because that they are outside the current scope and would not be found in the registers or L1 cache and would probably located in the RAM.

I hope I am making some sense.