register variables
Chris Torek
chris at umcp-cs.UUCP
Fri Jul 5 23:24:33 AEST 1985
> Sounds like the Pyramid compiler has a problem there, to the extent that
> it's not following the spirit of the `register' declaration.
It *is* kind of tacky. It works, though.
> Also, it's not generally possible to declare register variables before
> ordinary variables--parameters are effectively just initialized local
> variables, but the syntax requires that they all be declared before any of
> the locals. The parameter-vs-local distinction is another reason that
> compilers ought not to do what the Pyramid compiler is described as doing.
Actually, since on Pyramids the first 12 arguments to a procedure
are already in registers (different from the 12 local registers)
this doesn't matter. Again it just ignores the register declarations,
this time because of the subroutine call architecture.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.lang.c
mailing list