Novice question.

Michael Salmon epames at eos.ericsson.se
Wed Nov 14 21:11:26 AEST 1990


In article <1990Nov14.010511.7241 at ux1.cso.uiuc.edu> gordon at osiris.cso.uiuc.edu (John Gordon) writes:
>
>	"register" means that the variable *will* be stored in a portion of
>memory that can be accessed significantly faster than normal.

I don't wish to sound pedantic but register is intended as a hint to the
compiler that the variable should be stored in some fast access but the
compiler need not do so. Many of the early C compiler I used ignored this
and if I remember correctly the Zortech compiler thinks it can determine
which variables to place in registers better than the programmer.

Michael Salmon
L.M.Ericsson
Stockholm



More information about the Comp.lang.c mailing list