Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!m2c!applix!scott
From: scott@applix.UUCP (Scott Evernden)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Lattice 4.1 register yuck!
Message-ID: <728@applix.UUCP>
Date: 22 Jun 88 20:14:24 GMT
References: <8806212123.AA01328@cory.Berkeley.EDU>
Reply-To: scott@applix.UUCP (Scott Evernden)
Organization: APPLiX Inc., Westboro MA
Lines: 27

In article <8806212123.AA01328@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes:
>	One thing I have yet to see addressed properly by either Aztec or
>Lattice is the following:
>
>	    register short i, j, k;
>
>	    for (i = 0; i < 10; ++i)
>		
>	    for (j = 0; j < 10; ++j) 
>		
>	    for (k = 0; k < 10; ++k)
>		
>...
>	ONLY ONE REGISTER SHOULD BE USED FOR ALL THREE REGISTER VARIABLES!!

As much as I might agree with you, I have yet to encounter
a compiler that will do this.  Even the best optimizing compilers
fair no better than Manx and Lattice in this area.  Does anyone
know different??

BTW (and to fill some space here so this will pass rn), I noted
while studying PDC some years ago, that it actually would ignore
'register' declarations altogether.  The dang thing actually
selected registers based on a computed usage of variables
in generated blocks.  Incredible.

-scott