0
I’m still reading the Complete and Total C booklet, and it says that:
[...] This means that operations on the Register variables could occur much faster than on the armezanadas variables in memory, because the value of these variables was actually conserved in the CPU and no memory access was required to determine or modify their values [...]
Doesn’t it say here the performance gain that I have, does it have any chart or explanatory content? And when should I actually use it? I know that I should not abuse, and neither arrays should enter as it says (Page 47):
[...] Larger objects, such as matrices, obviously cannot be stored in a recorder [...]
Edit1: I’m quite enjoying C
, I am seeing that I should have learned first because it is fundamental to see how memory works and etc... Another question, as C
would be like "Parent" of other languages, this storage specifier also works in other languages like PHP
, Python
, JavaScript
, Java
?
Edit2: I saw in the comments and said that this booklet is bad and old, some suggestion for reading?
It seemed to me that information was missing to complete...
This book is very old and is not completely valid today. Nowadays this keyword is not so useful anymore. Modern compilers do this automatically and are also better at choosing this than we humans. Reference: https://stackoverflow.com/questions/578202/register-keyword-in-c
– Kevin Kouketsu
This book is really bad, really bad.
– Jefferson Quesado
Vish! Really? Which book do you refer me to? And why is it so bad?
– Devprogramacao
Congratulations on your perception, if you know how to drive well you have the potential to become a great programmer because at least you see something different and that few people see, even you can change your mind when you see something ahead, in general nowadays people are quite stubborn. I think that question has already been answered in https://answall.com/q/169857/101. That’s it, it hasn’t been needed for a long time, just like other languages don’t need or even make sense. This is not just an old book, it’s perhaps the worst ever written about C. See the [tag:c].
– Maniero
This is not a booklet it’s book piracy.
– Maniero