address of register variables

eric.a.olson mveao at cbnews.ATT.COM
Thu Sep 7 08:44:22 AEST 1989


>>> What if x is in a register?

    Yeah.  What if?  I realize that registers might not have an
    adress that can be taken, but why should that make taking its
    address illegal rather than implementation-dependent?

    I thought that 'register' storage class was supposed to be used
    as a hint to the compiler that the variable would be heavily used and to
    put it in a register if possible.  This concept is not *necessarily*
    at conflict with 'please take the address of this variable'.

						eric olson
						eao at mvuxq.att.com



More information about the Comp.lang.c mailing list