From: | schwarz@mips.complang.tuwien.ac.at (Konrad Schwarz) |
Newsgroups: | comp.arch,comp.compilers,comp.dsp |
Date: | 25 Mar 1996 21:52:39 -0500 |
Organization: | TU Wien |
References: | 96-03-006 96-03-091 96-03-111 96-03-142 |
Keywords: | optimize, performance |
Our moderator writes:
|> [If you have an auto variable and never take its address, it can't be
|> aliased. Register does document your intent, but it doesn't tell the
|> compiler anything it can't figure out anyway. -John]
This contradicts advice found in the ``Programmer's Guide'' for DEC Unix.
Chapter 7, ``Optimizing Techniques,'' section 7.12.2, says:
Use register declarations liberally. The compiler
automatically assigns variables to registers. However,
specifically declaring a register type enables the
compiler to make more aggressive assumptions when
assigning register variables.
Past experiments with a HP compiler verify this.
Konrad Schwarz
[Well, OK, but I'd sure like to know what the more aggressive assumptions
are. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.