I think we need examples. Post some common examples like "here a lot use a global, but it could be avoided". Some users, I suspect many, don't have the experience in working for a big C project so...
Type: Posts; User: C_ntua
I think we need examples. Post some common examples like "here a lot use a global, but it could be avoided". Some users, I suspect many, don't have the experience in working for a big C project so...
Does the compiler perform any optimization on this? Like check if the global variable is even used in the function?
3) As far as I understand you declare a variable restrict, I think only pointers, when you know FOR SURE that it is the only pointer that points at some data. So you can gain some optimizations. I...