From: | mgrice@iastate.edu (Matt Grice) |
Newsgroups: | comp.arch,comp.compilers,comp.dsp |
Date: | 27 Mar 1996 00:04:29 -0500 |
Organization: | Iowa State University, Ames, Iowa |
References: | 96-03-006 96-03-091 96-03-111 96-03-142 96-03-180 |
Keywords: | optimize |
schwarz@mips.complang.tuwien.ac.at (Konrad Schwarz) wrote:
>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]
>
>[The DEC Unix C compiler says register declarations let it optimize more
>aggressively]
Another data point, the MSVC++ online docs:
"The 32-bit compiler does not honor user requests for register
variables. Instead it makes its own register choices when global
optimizations are on. However, all other semantics associated with the
register keyword are honored by the 32-bit compiler."
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.