Re: C code .vs. Assembly code for Microcontrollers/DSPs ?

mgrice@iastate.edu (Matt Grice)
27 Mar 1996 00:04:29 -0500

          From comp.compilers

Related articles
[44 earlier articles]
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? preston@tera.com (1996-03-22)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? bobduff@world.std.com (1996-03-22)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? torbenm@diku.dk (1996-03-25)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) (1996-03-25)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? schwarz@mips.complang.tuwien.ac.at (1996-03-25)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? pardo@cs.washington.edu (1996-03-25)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? mgrice@iastate.edu (1996-03-27)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? sberg@camtronics.com (1996-03-31)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? nather@astro.as.utexas.edu (R. Edward Nather) (1996-04-02)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? ok@cs.rmit.edu.au (1996-04-02)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? sberg@camtronics.com (1996-04-06)
Re: C code .vs. Assembly code for Microcontrollers/DSPs ? ok@cs.rmit.edu.au (1996-04-10)
| List of all articles for this month |

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."
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.