> Oh yes! i got it. but is not there any other way like
> in c++ "register int a";
The keyword 'register' has nothing to do with persistency. The 'register'
keyword originates in very very old pre-ansi-C implementations. It was
supposed to tell the compiler to keep a simple int in a cpu register.
A severe complication arose from that 'register' keyword:
- a 'register int i' doesn't have an address, i.e. '&i' would be invalid
A temporary storage location had to be allocated for a copy of that 'i'
value in order to obtain the address of it. The register itself had to be
reloaded again afterwards. The conclusion was: it's a mess, let that
keyword just be an indication to the compiler, often to be ignored.
Current C or C++ compilers by large ignore that old fashioned 'register'
keyword. And it had and has nothing to do with any form of persistency
at all. Please know what you're talking about before you confuse people
by spraying buzzwords all over the place.
kind regards,
Jos