'register' type (was: bit-field pointers / arrays)

braner braner at batcomputer.tn.cornell.edu
Wed Dec 31 02:30:55 AEST 1986


[]

The C programmer is currently free to avoid declaring variables 'register',
in the hope that the compiler is smart enough to do it optimally.  Also, if
'register' IS used (with reason), it should not hamper the smart compiler.

On the other hand, lots of present and future compilers are NOT that smart.
Also, there will always be SOME cases where a tricky algorithm eludes the
compiler's smarts.

The 'register' tool can be VERY valuable, and is one of endearing features
of C.  Don't dump it!

- Moshe Braner

PS:  Wish: May all compilers allow register unions!
           (for small objects, of course...)



More information about the Comp.lang.c mailing list