Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcuhb!hpcllla!daryl From: daryl@hpcllla.HP.COM (Daryl Odnert) Newsgroups: comp.sys.hp Subject: Re: Compiler questions for 800 series (hp-ux) Message-ID: <3770009@hpcllla.HP.COM> Date: 4 Apr 89 17:15:42 GMT References: Organization: Hewlett-Packard Calif. Language Lab Lines: 17 Daniel Stodolsky asks: > 3) One nice additional optimization for the current C compiler would be to > automatically enregister variables. Automatic local variables whose addresses > are not taken could certainly be enregistered. Does anyone have plans to do > this? This is fairly straightforward, and I would be more than willing to do > it if someone would send me compiler source. If you are using full level two optimization, the compiler can automatically promote local variables to registers (as long as its address has not been taken.) This does not mean that it will promote ALL local variables to registers... some heuristics are used to select only the most important variables. Daryl Odnert Hewlett-Packard California Language Lab daryl%hpcllla@hplabs.hp.com