From VMS to UNIX - (nf)

Alan Lehotsky alan at apollo.UUCP
Fri Nov 4 02:27:44 AEST 1983


BLISS and REGISTERs

First of all, any LOCAL is a candidate to be in a
register - and the compilers pack the declared
variables, based on their life-times.  If you want
to force something to memory, declare it as
STACKLOCAL.

Second, you can say

    REGISTER foobar;        ! Compiler picks one

    REGISTER mychoice=5;    ! Picks R5 - This isn't portable

    BUILTIN R5;             ! Equivalent to REGISTER R5=5;

If you compile with portability checking turned on,
the last two are diagnosed as suspicious.



More information about the Comp.unix.wizards mailing list