All good points.
I would also like to point out that if a function takes more than three or four parameters and you think "Oh, well, if I make X a global, I don't have to pass it around so much"...
Type: Posts; User: matsp
All good points.
I would also like to point out that if a function takes more than three or four parameters and you think "Oh, well, if I make X a global, I don't have to pass it around so much"...
It may do, but if it wants to use the register for another reason it will then have to SAVE the register and restore it again when it returns from the function (but then it probably would have to do...
In a previous discussion about global variables and registers, the global register option (which by the way is not supported by the C standard - it is a gcc extension to allow this) did not only...