Article View: comp.sys.amiga.tech
Article #9178Re: Lattice 4.1 register yuck!
From: Scott Evernden
Date: Wed, 22 Jun 1988 20:14
Date: Wed, 22 Jun 1988 20:14
27 lines
1388 bytes
1388 bytes
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) > <blah> > for (j = 0; j < 10; ++j) > <blah> > for (k = 0; k < 10; ++k) > <blah> >... > 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
Technical Details
Message-ID:
<728@applix.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!m2c!applix!scottReferences:
<8806212123.AA01328@cory.Berkeley.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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