[comp.sys.hp] Compiler questions for 800 series

danner@cs.cmu.edu (Daniel Stodolsky) (04/02/89)

A couple of compiler questions:

1) Is  anyone working on a gcc port to the 800's? It looks painful.

2) Is hp planning a release of ANSI compliant C complier?

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.

Daniel Stodolsky
Engr. Design Research Center, CMU.
danner@edrc.cmu.edu

daryl@hpcllla.HP.COM (Daryl Odnert) (04/05/89)

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

shankar@hpcllca.HP.COM (Shankar Unni) (04/05/89)

> 1) Is  anyone working on a gcc port to the 800's? It looks painful.

I believe so. Michael Tiemann is working on one now.

---
Shankar.